home *** CD-ROM | disk | FTP | other *** search
/ Frame 3.2 / Frame.iso / Application / FrameMaker.app / fminit2.0 / installtraining < prev    next >
Encoding:
Text File  |  1994-08-11  |  678 b   |  25 lines

  1. #!/bin/sh
  2. # 5Aug1994 wiml@omnigroup.com bug #84694
  3. # installtraining (this script) now checks to see if there's anything in
  4. # the way of the fmtraining directory, and checks with the user before
  5. # deleting it. User interaction is done with the "alertpanel" program
  6. # (also new).
  7. whereto=$HOME/fmtraining
  8. if [ -d $whereto -o -f $whereto ]; then
  9.   alerter=`echo $0 | sed 's,[^/]*$,,'`alertpanel
  10.   if [ -d $whereto ]; then
  11.     query='Delete it and its contents?'
  12.   else
  13.     query='Delete it?'
  14.   fi
  15.   if $alerter -t Installtraining "$whereto already exists. $query" OK Cancel; then
  16.     rm -rf $whereto
  17.   else
  18.     exit 1;
  19.   fi
  20. fi
  21. sndplay $0.snd &
  22. cp -r $0.files $whereto
  23. wait
  24. exit 0
  25.