Advertisement
OpenSource

guiserver.sh

Mar 18th, 2011
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. #!/bin/sh
  2. # CUBE_DIR should refer to the directory in which Cube is placed.
  3. #CUBE_DIR=~/cube
  4. #CUBE_DIR=/usr/local/cube
  5. CUBE_DIR=/PATH/TO/ASSAULTCUBE/FOLDER/
  6.  
  7. # CUBE_OPTIONS contains any command line options you would like to start Cube with.
  8. CUBE_OPTIONS=-
  9.  
  10. # comment this to disable reading command line options from config/servercmdline.txt
  11. CUBE_OPTIONFILE=-Cconfig/servercmdline.txt
  12.  
  13. # SYSTEM_NAME should be set to the name of your operating system.
  14. #SYSTEM_NAME=Linux
  15. SYSTEM_NAME=`uname -s`
  16.  
  17. # MACHINE_NAME should be set to the name of your processor.
  18. #MACHINE_NAME=i686
  19. MACHINE_NAME=`uname -m`
  20.  
  21. case ${SYSTEM_NAME} in
  22. Linux)
  23. SYSTEM_NAME=linux_
  24. ;;
  25. *)
  26. SYSTEM_NAME=unknown_
  27. ;;
  28. esac
  29.  
  30. case ${MACHINE_NAME} in
  31. i486|i586|i686)
  32. MACHINE_NAME=
  33. ;;
  34. x86_64)
  35. MACHINE_NAME=64_
  36. ;;
  37. *)
  38. if [ ${SYSTEM_NAME} != native_ ]
  39. then
  40. SYSTEM_NAME=native_
  41. fi
  42. MACHINE_NAME=
  43. ;;
  44. esac
  45.  
  46. if [ -x ${CUBE_DIR}/bin_unix/native_server ]
  47. then
  48. SYSTEM_NAME=native_
  49. MACHINE_NAME=
  50. fi
  51.  
  52. cd ${CUBE_DIR}
  53. exec ${CUBE_DIR}bin_unix/ac_guiserver ${CUBE_OPTIONS} ${CUBE_OPTIONFILE} "$@"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement