home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / remind-03.00.19.tgz / remind-03.00.19.tar / remind-03.00.19 / scripts / rem < prev    next >
Text File  |  1998-01-14  |  899b  |  46 lines

  1. #!/bin/sh
  2. #
  3. # rem - by David Skoll - 26 February 1991
  4. #
  5. # $Id: rem,v 1.1 1998/01/15 02:50:21 dfs Exp $
  6. #
  7. # This script runs 'remind' with a default reminder file assumed.  You
  8. # can override the default by using "rem -F newfile ..."  (But why would
  9. # you use rem unless you wanted to accept the default??)
  10.  
  11. # ------ You may wish to change the defaults below this line ------
  12.  
  13. # The default reminder file
  14. DEFAULT=$HOME/.reminders
  15.  
  16. # The executable file (you may wish to change this to /usr/local/bin/remind
  17. # or whatever.
  18. EXECUTABLE=remind
  19.  
  20. # No options yet
  21. OPTIONS=""
  22.  
  23. # No parameters yet
  24. PARAMETERS=""
  25.  
  26. # ------ You shouldn't change anything below this line -----
  27.  
  28. # Scan for options
  29. while test "$1" != ""
  30. do
  31.     case $1 in
  32.  
  33.         -F) DEFAULT=$2
  34.             shift
  35.             shift ;;
  36.  
  37.         -*) OPTIONS="$OPTIONS $1"
  38.             shift ;;
  39.  
  40.         *) PARAMETERS=$*
  41.            break ;;
  42.     esac
  43. done
  44.  
  45. $EXECUTABLE $OPTIONS $DEFAULT $PARAMETERS
  46.