Skip to content

Commit e2c4d08

Browse files
committed
Add startAll script and update create_binary.sh to include it
1 parent b7efbf7 commit e2c4d08

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

scripts/create_binary.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ rm -rf binary/start.onefile-build
3434

3535
# copy start to binary directory
3636

37-
cp start binary/start
37+
cp start binary/start
38+
cp startAll binary/startAll

scripts/start

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ teamname="CLSF"
88

99
cd $BASEDIR
1010

11-
options="--team_name $teamname --server-host $HOST --use-random-port --close-server --disable_log_file"
11+
options="--team_name $teamname --server-host $HOST --use-random-port --close-server --disable-log-file"
1212

1313
case $NUM in
1414
1)

scripts/startAll

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
./start 127.0.0.1 . 1 &
4+
sleep 1
5+
./start 127.0.0.1 . 2 &
6+
./start 127.0.0.1 . 3 &
7+
./start 127.0.0.1 . 4 &
8+
./start 127.0.0.1 . 5 &
9+
./start 127.0.0.1 . 6 &
10+
./start 127.0.0.1 . 7 &
11+
./start 127.0.0.1 . 8 &
12+
./start 127.0.0.1 . 9 &
13+
./start 127.0.0.1 . 10 &
14+
./start 127.0.0.1 . 11 &
15+
./start 127.0.0.1 . 12 &

0 commit comments

Comments
 (0)