#!/bin/rc # TIDE install script rfork en if (~ $#T3XDIR 0) T3XDIR = $t3xdir if (~ $#T3XDIR 0) { echo echo 'The T3XDIR environment variable has to be defined' echo 'in order to install TIDE.' echo exit 'no t3xdir' } txcm -i config txcm -i editor txcm -i filebox txcm -i filesrv txcm -i form txcm -i menu txcm -i prompt txcm -i pstruct txcm -i vedit cp *.sd $T3XDIR/doc if (! test -d $T3XDIR/classes/2) mkdir $T3XDIR/classes/2 && chmod 0755 $T3XDIR/classes/2 cd xclasses for (cls in config editor filebox filesrv form menu prompt pstruct vedit) { grep '^'$cls':' $T3XDIR/classes/CLASSNDX >>$T3XDIR/classes/2/CLASSNDX cp $cls.cls $T3XDIR/classes/2 && chmod 0644 $T3XDIR/classes/2/$cls.cls } cd ..