home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- # NOTE: we don't use packages because they are broken with long filenames,
- # or at least the package maker that we have is broken with long
-
- if [ x`whoami` != xroot ]; then
- echo You are not running as super user.
- echo Executor can not be installed.
- exit 1
- fi
-
- # NOTE: If your system doesn't support which then this script will
- # only work properly if it's run from the current directory
-
- this_file=`which $0`
- this_dir=`expr $this_file : '\(.*\)/' '|' .`
-
- comm_or_demo=`expr $this_file : '.*\(demo\)' '|' commercial`
-
- tar_file=$this_dir/executor-$comm_or_demo.tar
-
- cd /
- if tar xpfv $tar_file ; then
- lack_of_nul_command=true
- else
- echo ' '
- echo Some sort of problem seems to have occurred untarring $tar_file
- echo Installation FAILED.
- exit 1
- fi
-