mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-12 13:12:07 +00:00
Fix server_compile.sh to exit after completed
Also, convert '\n's to real new lines because the literal '\n's were printed.
This commit is contained in:
parent
2758eebbcc
commit
e79af0d1a0
1 changed files with 11 additions and 4 deletions
|
@ -9,14 +9,21 @@ export COPYDIR="~/ioquake3"
|
||||||
IOQ3REMOTE="https://github.com/ioquake/ioq3.git"
|
IOQ3REMOTE="https://github.com/ioquake/ioq3.git"
|
||||||
IOQ3LOCAL="/tmp/ioquake3compile"
|
IOQ3LOCAL="/tmp/ioquake3compile"
|
||||||
JOPTS="-j2"
|
JOPTS="-j2"
|
||||||
echo "This process requires you to have the following installed through your distribution: \n make\n git\n and all of the ioquake3 dependencies necessary for an ioquake3 server. \n If you do not have the necessary dependencies this script will bail out. \n Please post a message to http://community.ioquake.org/ asking for help and include whatever error messages you received during the compile phase. \n Please edit this script. Inside you will find a COPYDIR variable you can alter to change where ioquake3 will be installed to."
|
echo "This process requires you to have the following installed through your distribution:
|
||||||
|
make
|
||||||
|
git
|
||||||
|
and all of the ioquake3 dependencies necessary for an ioquake3 server.
|
||||||
|
If you do not have the necessary dependencies this script will bail out.
|
||||||
|
Please post a message to http://community.ioquake.org/ asking for help and include whatever error messages you received during the compile phase.
|
||||||
|
Please edit this script. Inside you will find a COPYDIR variable you can alter to change where ioquake3 will be installed to."
|
||||||
while true; do
|
while true; do
|
||||||
read -p "Are you ready to compile ioquake3 in the $IOQ3LOCAL directory, and have it installed into $COPYDIR?" yn
|
read -p "Are you ready to compile ioquake3 in the $IOQ3LOCAL directory, and have it installed into $COPYDIR? " yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* )
|
[Yy]* )
|
||||||
if [ -x "$(command -v git)" ] && [ -x "$(command -v make)" ] ; then
|
if [ -x "$(command -v git)" ] && [ -x "$(command -v make)" ] ; then
|
||||||
git clone $IOQ3REMOTE $IOQ3LOCAL && cd $IOQ3LOCAL && make $JOPTS && make copyfiles && cd $localPATH && rm -rf $IOQ3LOCAL
|
git clone $IOQ3REMOTE $IOQ3LOCAL && cd $IOQ3LOCAL && make $JOPTS && make copyfiles && cd $localPATH && rm -rf $IOQ3LOCAL
|
||||||
fi ;;
|
fi
|
||||||
|
exit;;
|
||||||
[Nn]* ) exit;;
|
[Nn]* ) exit;;
|
||||||
* ) echo "Please answer yes or no.";;
|
* ) echo "Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue