aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/sledjchisl/sledjchisl.c
diff options
context:
space:
mode:
authoronefang2021-08-27 08:31:53 +1000
committeronefang2021-08-27 08:31:53 +1000
commit66d3fd9403a8a0a89c77cacd5d054072ee55e2f9 (patch)
tree2d116820d82b4ccff42a9c7b6e12a4612826d0a4 /src/sledjchisl/sledjchisl.c
parentAllow people to teleport themselves. (diff)
downloadopensim-SC-66d3fd9403a8a0a89c77cacd5d054072ee55e2f9.zip
opensim-SC-66d3fd9403a8a0a89c77cacd5d054072ee55e2f9.tar.gz
opensim-SC-66d3fd9403a8a0a89c77cacd5d054072ee55e2f9.tar.bz2
opensim-SC-66d3fd9403a8a0a89c77cacd5d054072ee55e2f9.tar.xz
Add stub build, test, and update sledjchisl commands.
Diffstat (limited to 'src/sledjchisl/sledjchisl.c')
-rw-r--r--src/sledjchisl/sledjchisl.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index ab8776c..9e2b6f2 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -58,6 +58,12 @@ config SLEDJCHISL
58 stop "Welcome sim" 58 stop "Welcome sim"
59 Will stop a sim, or everything. 59 Will stop a sim, or everything.
60 -a when stopping everything will close down all tmux windows and panes. 60 -a when stopping everything will close down all tmux windows and panes.
61 build
62 Will rebuild everything.
63 test
64 Will run the OpenSim tests.
65 update
66 Will update opensim-SC from the git repo.
61*/ 67*/
62 68
63 69
@@ -152,6 +158,9 @@ typedef enum
152 GITAR = 2, 158 GITAR = 2,
153 RESTART = 3, 159 RESTART = 3,
154 STATUS = 4, 160 STATUS = 4,
161 BUILD = 5,
162 TEST = 6,
163 UPDATE = 7,
155 STOP = 9 164 STOP = 9
156} modes; 165} modes;
157 166
@@ -164,9 +173,9 @@ char *modeStrings[] =
164 "gitAR", 173 "gitAR",
165 "restart", 174 "restart",
166 "status", 175 "status",
167 "Huh?", 176 "build",
168 "WTF?", 177 "test",
169 "mumblefuck", 178 "update",
170 "dontDoThis" 179 "dontDoThis"
171 "stop" 180 "stop"
172}; 181};
@@ -8467,6 +8476,12 @@ Build the OpenSim.
8467 currentMode = START; 8476 currentMode = START;
8468 else if (strcmp(toys.optargs[0], "status") == 0) 8477 else if (strcmp(toys.optargs[0], "status") == 0)
8469 currentMode = STATUS; 8478 currentMode = STATUS;
8479 else if (strcmp(toys.optargs[0], "build") == 0)
8480 currentMode = BUILD;
8481 else if (strcmp(toys.optargs[0], "test") == 0)
8482 currentMode = TEST;
8483 else if (strcmp(toys.optargs[0], "update") == 0)
8484 currentMode = UPDATE;
8470 else if (strcmp(toys.optargs[0], "stop") == 0) 8485 else if (strcmp(toys.optargs[0], "stop") == 0)
8471 currentMode = STOP; 8486 currentMode = STOP;
8472 if (2 == toys.optc) 8487 if (2 == toys.optc)