The game engine core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

octacore_unix 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #!/bin/sh
  2. # TESS_DATA should refer to the directory in which OF data files are placed.
  3. #TESS_DATA=~/octacore
  4. #TESS_DATA=/usr/local/octacore
  5. TESS_DATA=.
  6. # TESS_BIN should refer to the directory in which OF executable files are placed.
  7. TESS_BIN=${TESS_DATA}/bin_unix
  8. # TESS_OPTIONS contains any command line options you would like to start OF with.
  9. #TESS_OPTIONS=""
  10. TESS_OPTIONS="-u${HOME}/.octaforge"
  11. # SYSTEM_NAME should be set to the name of your operating system.
  12. #SYSTEM_NAME=Linux
  13. SYSTEM_NAME=`uname -s`
  14. # MACHINE_NAME should be set to the name of your processor.
  15. #MACHINE_NAME=i686
  16. MACHINE_NAME=`uname -m`
  17. case ${SYSTEM_NAME} in
  18. Linux)
  19. SYSTEM_NAME=linux_
  20. ;;
  21. *)
  22. SYSTEM_NAME=unknown_
  23. ;;
  24. esac
  25. case ${MACHINE_NAME} in
  26. i486|i586|i686)
  27. MACHINE_NAME=
  28. ;;
  29. x86_64|amd64)
  30. MACHINE_NAME=64_
  31. ;;
  32. *)
  33. if [ ${SYSTEM_NAME} != native_ ]
  34. then
  35. SYSTEM_NAME=native_
  36. fi
  37. MACHINE_NAME=
  38. ;;
  39. esac
  40. if [ -x ${TESS_BIN}/native_client ]
  41. then
  42. SYSTEM_NAME=native_
  43. MACHINE_NAME=
  44. fi
  45. if [ -x ${TESS_BIN}/${SYSTEM_NAME}${MACHINE_NAME}client ]
  46. then
  47. cd ${TESS_DATA}
  48. exec ${TESS_BIN}/${SYSTEM_NAME}${MACHINE_NAME}client ${TESS_OPTIONS} "$@"
  49. else
  50. echo "Your platform does not have a pre-compiled OctaForge client."
  51. echo "Please follow the following steps to build a native client:"
  52. echo "1) Ensure you have the SDL2, SDL2-image, SDL2-mixer, and OpenGL libraries installed."
  53. echo "2) Type \"make -C src install\"."
  54. echo "3) If the build succeeds, run this script again."
  55. exit 1
  56. fi