home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 12 / Silicon_Graphics_Developer_Magic_Soft_Dev_812-8101-012.iso / .all / demos / RapidApp / InstallIt.csh next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1995-11-17  |  1.1 KB  |  40 lines

  1. #! /bin/csh -f
  2.  
  3. set CD_PATH=$DMTOOLSDIR/demos/RapidApp
  4. cd $CD_PATH
  5.  
  6. if (`/sbin/uname -r | cut -c1,3` < 53) then
  7.     xwsh -holdonerror -bg royalblue -fg white \
  8.         -geom 90x30+100+100 -cursorfg violetred1 -cursorbg violetred1 \
  9.         -title "Notifier..." \
  10.         -e /bin/csh -c \
  11.     'echo ; \
  12.          echo ; \
  13.          echo Installation of this product requires an operating system; \
  14.      echo of 5.3 or greater. ; \
  15.          echo ; \
  16.      echo Exiting... ; \
  17.          echo ; \
  18.          echo ; \
  19.      echo Press Enter to exit this window... ; \
  20.      set a = $< ' 
  21.         exit 
  22.  
  23. else
  24.  
  25.   cd $CD_PATH
  26.   xwsh -holdonerror -bg royalblue -fg white \
  27.     -geom 90x30+100+100 -cursorfg violetred1 -cursorbg violetred1 \
  28.         -title "Installing RapidApp 1.1..." \
  29.         -e /bin/csh -c \
  30.         "echo ; \
  31.          echo ; \
  32.          echo Installation of this product requires ROOT privileges.; \
  33.          echo If your system has a ROOT password, you must enter it.; \
  34.          echo If you have no ROOT password, you will not be prompted for it.; \
  35.          echo ; \
  36.          su root -c './LaunchIt.csh'; sleep 5"
  37. endif
  38.  
  39.  
  40.