Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- smxfile="`echo $2 | sed -e 's/\.sp$/\.smx/'`";
- test -e $(pwd)/compiled || mkdir $(pwd)/compiled
- if [ "$1" ]; then
- if [ "$2" ]; then
- /Users/rfoster/Documents/sourcemod/bin/$1 -i/Users/rfoster/Documents/sourcemod/include/$1 -i$(pwd)/include -o$(pwd)/compiled/$smxfile -O2 $2
- else
- echo ""; echo "You need a file name!"; echo "";
- fi
- else
- echo ""
- echo "You must chose a sourcemod version!"
- echo "Versions avaiable: 19 (1.9), 18 (1.8), 17 (1.7), 16 (1.6) or 15 (1.5)"
- echo "Example: spcomp 15 deathmatch"
- echo ""
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement