home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
European Smalltalk User Group 2004 September
/
esugcd.iso
/
VisualWorks7.2.1nc
/
installUnix
< prev
next >
Wrap
Text File
|
2004-07-06
|
1KB
|
50 lines
#!/bin/sh
cd `dirname "$0"`
RELDIR=vw7.2.1nc
if [ -x /bin/test ]; then
TEST=/bin/test
elif [ -x /usr/bin/test ]; then
TEST=/usr/bin/test
else
TEST=test
fi
if [ -x /bin/uname ]; then
UNAME=/bin/uname
elif [ -x /usr/bin/uname ]; then
UNAME=/usr/bin/uname
else
UNAME=uname
fi
OE=
case `$UNAME -s` in
AIX) OE=./$RELDIR/bin/aix/visual;;
Darwin) OE=./$RELDIR/bin/macx/visual.app/Contents/MacOS/vwmacxgui;;
HP-UX) case `/bin/uname -r` in
B.11.*) OE=./$RELDIR/bin/hpux11/visual;;
B.10.*) OE=./$RELDIR/bin/hpux10/visual
esac;;
IRIX*) OE=./$RELDIR/bin/sgi/visual;;
Linux) case `/bin/uname -m` in
i*86) OE=./$RELDIR/bin/linux86/visual;;
sparc) OE=./$RELDIR/bin/unsupported/linuxSPARC/visual;;
ppc) OE=./$RELDIR/bin/unsupported/linuxPPC/visual;;
arm) OE=./$RELDIR/bin/unsupported/linuxARM/visual;;
m68k) OE=./$RELDIR/bin/unsupported/linux68k/visual;;
esac;;
OSF1) OE=./$RELDIR/bin/adux/visual;;
SunOS) OE=./$RELDIR/bin/solaris/visual
esac
$TEST -n "$OE" -a -x "$OE" >/dev/null && exec $OE $* $RELDIR/image/install.im
if [ -n "$OE" -a -n "$OE" ]; then
echo "The virtual machine for your platform, $OE"
echo "exists but cannot be executed. The file system/CDROM containing"
echo "the virtual machine must provide execute permissions."
echo "Please remount the file system/CDROM and try again."
exit 1
fi
echo "Cannot find a virtual machine for `$UNAME -s -r -m`. Cannot install."
exit 1