home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / nextstep / install < prev    next >
Text File  |  1996-08-20  |  781b  |  31 lines

  1. #!/bin/sh
  2.  
  3. # NOTE: we don't use packages because they are broken with long filenames,
  4. #       or at least the package maker that we have is broken with long
  5.  
  6. if [ x`whoami` != xroot ]; then
  7.   echo You are not running as super user.
  8.   echo Executor can not be installed.
  9.   exit 1
  10. fi
  11.  
  12. # NOTE: If your system doesn't support which then this script will
  13. #       only work properly if it's run from the current directory
  14.  
  15. this_file=`which $0`
  16. this_dir=`expr $this_file : '\(.*\)/' '|' .`
  17.  
  18. comm_or_demo=`expr $this_file : '.*\(demo\)' '|' commercial`
  19.  
  20. tar_file=$this_dir/executor-$comm_or_demo.tar
  21.  
  22. cd /
  23. if tar xpfv $tar_file ; then
  24.   lack_of_nul_command=true
  25. else
  26.   echo ' '
  27.   echo Some sort of problem seems to have occurred untarring $tar_file
  28.   echo Installation FAILED.
  29.   exit 1
  30. fi
  31.