Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.57 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. smxfile="`echo $2 | sed -e 's/\.sp$/\.smx/'`";
  4. test -e $(pwd)/compiled || mkdir $(pwd)/compiled
  5.  
  6. if [ "$1" ]; then
  7.     if [ "$2" ]; then
  8.         /Users/rfoster/Documents/sourcemod/bin/$1 -i/Users/rfoster/Documents/sourcemod/include/$1 -i$(pwd)/include -o$(pwd)/compiled/$smxfile -O2 $2
  9.     else
  10.         echo ""; echo "You need a file name!"; echo "";
  11.     fi
  12. else
  13.     echo ""
  14.     echo "You must chose a sourcemod version!"
  15.     echo "Versions avaiable: 19 (1.9), 18 (1.8), 17 (1.7), 16 (1.6) or 15 (1.5)"
  16.     echo "Example: spcomp 15 deathmatch"
  17.     echo ""
  18. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement