"Fossies" - the Fresh Open Source Software Archive

Member "remind-03.03.09/www/cal_dispatch-DIST" (15 Oct 2021, 1292 Bytes) of package /linux/misc/remind-03.03.09.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 
    3 # This file is part of REMIND.
    4 # Copyright (C) 1992-2018 by Dianne Skoll
    5 
    6 # CAL_DISPATCH -- Shell script for CGI directory to dispatch calendar
    7 # commands.
    8 
    9 #########################
   10 #
   11 # Parameters for you to change
   12 #
   13 #########################
   14 
   15 # Set DIR to the directory in which all the scripts live.  They must all
   16 # be in the same directory.  The scripts are:
   17 # cal_dispatch, cal_ps, hebdate, hebps, moon, sunrise and sunset.
   18 # In addition, the reminder files hebbg.ps, hebdate.rem, moon.rem,
   19 # sunrise.rem and sunset.rem must live in $DIR.
   20 DIR=%SCRIPTDIR%
   21 export DIR
   22 
   23 # Set REMIND to the full pathname of the Remind executable.
   24 REMIND=%REMIND%
   25 export REMIND
   26 
   27 # Set REM2PS to the full pathname of the rem2ps executable
   28 REM2PS=%REM2PS%
   29 export REM2PS
   30 
   31 #########################
   32 #
   33 # Don't change anything after this.
   34 #
   35 #########################
   36 
   37 if [ "$1" = "" ] ; then
   38     exit 0
   39 fi
   40 
   41 
   42 case "$1" in
   43     sunrise)
   44     exec $DIR/sunrise
   45     ;;
   46 
   47     sunset)
   48     exec $DIR/sunset
   49     ;;
   50 
   51     hebdate)
   52     exec $DIR/hebdate
   53     ;;
   54 
   55     calps)
   56     exec $DIR/calps
   57     ;;
   58 
   59     moon)
   60     exec $DIR/moon
   61     ;;
   62 
   63     hebps)
   64     exec $DIR/hebps
   65     ;;
   66 
   67     hebhtml)
   68     if [ "$2" = "" -o "$3" = "" ] ; then
   69     exec $DIR/hebhtml
   70     else
   71     exec $DIR/hebhtml "$2" "$3"
   72     fi
   73     ;;
   74 
   75 esac
   76 
   77 exit 0