home *** CD-ROM | disk | FTP | other *** search
- #
- # Standard CM script function library
- # baselib v1.2
- #
-
- PATH=/bin:/usr/bin:/etc:.
- LANG=english_us.ascii # Used when scripts are internationalized.
- export PATH LANG
-
- TMPFILE=/tmp/tmp$$ # Define a temporary file for use if necessary.
- TMPFILE1=/tmp/tmp1$$ # Define a temporary file for use if necessary.
- TMPFILE2=/tmp/tmp2$$ # Define a temporary file for use if necessary.
-
- # Define return values.
- : ${OK=0} ${FAIL=1} ${STOP=10}
-
- #
- #query the user for a responce.
- #a simpler system than prompt, use prompt for
- #more sophisticated uses.
- #q or Q returns fail, anything else return ok.
- #ARGS: <string>, string to print when asking for a responce
- #$OK means expression has been resolved or answer is given
- #$FAIL means quit has been selected
- #
- respond() {
- while echo "\n${*}\nRespond or enter q to quit: \c"
- do read answer
- case $answer in
- Q|q) return $FAIL ;;
- "") # on a return key return $OK
- answer="RETURNKEY"
- return $OK ;;
- *) # on anything else return $OK
- return $OK ;;
- esac
- done
- return $OK
- }
-
- rm -f /usr/spool/mmdf/lock/home/*/.keep
-
- cat - <<\MESSAGE
- The user mmdf must run the script /usr/mmdf/bin/cvttai in order to
- convert your existing mmdftailor file from the old format to the new
- format. This script will create an mmdftailor file called
- "mmdftailor.new". This must be installed as "/usr/mmdf/mmdftailor",
- and any existing deliver daemons must be restarted, before the
- installation will be complete.
- MESSAGE
-
- respond "Press Return to continue"
-