home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- # 5Aug1994 wiml@omnigroup.com bug #84694
- # installtraining (this script) now checks to see if there's anything in
- # the way of the fmtraining directory, and checks with the user before
- # deleting it. User interaction is done with the "alertpanel" program
- # (also new).
- whereto=$HOME/fmtraining
- if [ -d $whereto -o -f $whereto ]; then
- alerter=`echo $0 | sed 's,[^/]*$,,'`alertpanel
- if [ -d $whereto ]; then
- query='Delete it and its contents?'
- else
- query='Delete it?'
- fi
- if $alerter -t Installtraining "$whereto already exists. $query" OK Cancel; then
- rm -rf $whereto
- else
- exit 1;
- fi
- fi
- sndplay $0.snd &
- cp -r $0.files $whereto
- wait
- exit 0
-