home *** CD-ROM | disk | FTP | other *** search
/ Freelog 41 / Freelog041.iso / Graphisme3D / Cube / cube_unix < prev    next >
Text File  |  2002-01-31  |  765b  |  41 lines

  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/lib/cube
  5. CUBE_DIR=.
  6.  
  7. # SYSTEM_NAME should be set to the name of your operating system.
  8. #SYSTEM_NAME=Linux
  9. SYSTEM_NAME=`uname -s`
  10.  
  11. # MACHINE_NAME should be set to the name of your processor.
  12. #MACHINE_NAME=i686
  13. MACHINE_NAME=`uname -m`
  14.  
  15. case ${SYSTEM_NAME} in
  16. Linux)
  17.   SYSTEM_PREFIX=linux_
  18.   ;;
  19. *)
  20.   echo "Your operating system does not have a supported Cube client."
  21.   exit 1
  22.   ;;
  23. esac
  24.  
  25. case ${MACHINE_NAME} in
  26. i486|i586|i686)
  27.   MACHINE_PREFIX=
  28.   ;;
  29. ppc)
  30.   MACHINE_PREFIX=ppc_
  31.   ;;
  32. *)
  33.   echo "Your processor does not have a supported Cube client."
  34.   exit 1
  35.   ;;
  36. esac
  37.  
  38. cd ${CUBE_DIR}
  39. exec ${CUBE_DIR}/bin_unix/${MACHINE_PREFIX}${SYSTEM_PREFIX}client $*
  40.  
  41.