home *** CD-ROM | disk | FTP | other *** search
/ European Smalltalk User Group 2004 September / esugcd.iso / VisualWorks7.2.1nc / installMacOSX.command < prev    next >
Text File  |  2004-07-06  |  1KB  |  50 lines

  1. #!/bin/sh
  2. cd `dirname "$0"`
  3. RELDIR=vw7.2.1nc
  4. if [ -x /bin/test ]; then
  5. TEST=/bin/test
  6. elif [ -x /usr/bin/test ]; then
  7. TEST=/usr/bin/test
  8. else
  9. TEST=test
  10. fi
  11. if [ -x /bin/uname ]; then
  12. UNAME=/bin/uname
  13. elif [ -x /usr/bin/uname ]; then
  14. UNAME=/usr/bin/uname
  15. else
  16. UNAME=uname
  17. fi
  18. OE=
  19. case `$UNAME -s` in
  20. AIX)            OE=./$RELDIR/bin/aix/visual;;
  21. Darwin)            OE=./$RELDIR/bin/macx/visual.app/Contents/MacOS/vwmacxgui;;
  22. HP-UX)    case `/bin/uname -r` in
  23.         B.11.*)    OE=./$RELDIR/bin/hpux11/visual;;
  24.         B.10.*)    OE=./$RELDIR/bin/hpux10/visual
  25.         esac;;
  26. IRIX*)            OE=./$RELDIR/bin/sgi/visual;;
  27. Linux)    case `/bin/uname -m` in
  28.         i*86)    OE=./$RELDIR/bin/linux86/visual;;
  29.         sparc)    OE=./$RELDIR/bin/unsupported/linuxSPARC/visual;;
  30.         ppc)    OE=./$RELDIR/bin/unsupported/linuxPPC/visual;;
  31.         arm)    OE=./$RELDIR/bin/unsupported/linuxARM/visual;;
  32.         m68k)    OE=./$RELDIR/bin/unsupported/linux68k/visual;;
  33.         esac;;
  34. OSF1)            OE=./$RELDIR/bin/adux/visual;;
  35. SunOS)            OE=./$RELDIR/bin/solaris/visual
  36. esac
  37.  
  38. $TEST -n "$OE" -a -x "$OE" >/dev/null && exec $OE $* $RELDIR/image/install.im
  39.  
  40. if [ -n "$OE" -a -n "$OE" ]; then
  41.     echo "The virtual machine for your platform, $OE"
  42.     echo "exists but cannot be executed.  The file system/CDROM containing"
  43.     echo "the virtual machine must provide execute permissions."
  44.     echo "Please remount the file system/CDROM and try again."
  45.     exit 1
  46. fi
  47.  
  48. echo "Cannot find a virtual machine for `$UNAME -s -r -m`. Cannot install."
  49. exit 1
  50.