#! /bin/csh -f

set CD_PATH=$DMTOOLSDIR/demos/RapidApp
cd $CD_PATH

if (`/sbin/uname -r | cut -c1,3` < 53) then
	xwsh -holdonerror -bg royalblue -fg white \
        -geom 90x30+100+100 -cursorfg violetred1 -cursorbg violetred1 \
        -title "Notifier..." \
        -e /bin/csh -c \
	'echo ; \
         echo ; \
         echo Installation of this product requires an operating system; \
	 echo of 5.3 or greater. ; \
         echo ; \
	 echo Exiting... ; \
         echo ; \
         echo ; \
	 echo Press Enter to exit this window... ; \
	 set a = $< ' 
        exit 

else

  cd $CD_PATH
  xwsh -holdonerror -bg royalblue -fg white \
	-geom 90x30+100+100 -cursorfg violetred1 -cursorbg violetred1 \
        -title "Installing RapidApp 1.1..." \
        -e /bin/csh -c \
        "echo ; \
         echo ; \
         echo Installation of this product requires ROOT privileges.; \
         echo If your system has a ROOT password, you must enter it.; \
         echo If you have no ROOT password, you will not be prompted for it.; \
         echo ; \
         su root -c './LaunchIt.csh'; sleep 5"
endif


