Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Blood launch script
- # Powered by EDuke32 and BloodTC
- # Game folder is ~/.blood
- # Script check game folder and config files and create them if they don't exist
- # After checking script run game launcher
- cd "`dirname "$(readlink -f "$0")"`"
- # going to data folder
- cd $PWD/Data
- # checking game folder
- DIR="$HOME/.blood"
- if [ ! -d "$DIR" ]; then
- echo " Directory $DIR does not exist "
- mkdir $DIR
- echo " Directory $DIR created "
- fi
- # checking btc.cfg
- BTC="$HOME/.blood/btc.cfg"
- if [ ! -e "$BTC" ]; then
- echo " Config file $BTC does not exist "
- cp ./btc.cfg $DIR
- echo " Config file btc.cfg copied to game folder "
- fi
- # checking btc_settings.cfg
- BTCS="$HOME/.blood/btc_settings.cfg"
- if [ ! -e "$BTCS" ]; then
- echo " Config file $BTCS does not exist "
- cp ./btc_settings.cfg $DIR
- echo " Config file btc_settings.cfg copied to game folder "
- fi
- # runing Blood
- exec $PWD/game -jBloodTC -gBloodTC/BloodTC.grp -xBloodTC/eduke.con "$@"
- exit 1
Add Comment
Please, Sign In to add comment