simworld/scripts/run.sh

27 lines
378 B
Bash
Executable File

#!/bin/sh
set -e
if ! [ -d ".git" ]; then
echo "Run in the project root"
exit 1
fi
./scripts/build.sh
echo "### DAEMON ###"
./build/server/simworld-daemon &
sleep 1
echo "### CLIENT 1 ###"
./build/client/simworld-client
echo "### CLIENT 2 ###"
./build/client/simworld-client
echo "### CLIENT 3 ###"
sleep 1
./build/client/simworld-client
killall simworld-daemon