diff --git a/www/Makefile b/www/Makefile index 58b74171..8b4801ea 100644 --- a/www/Makefile +++ b/www/Makefile @@ -2,7 +2,7 @@ # This file is part of REMIND. # Copyright (C) 1992-1997 by David F. Skoll -# $Id: Makefile,v 1.4 1997-01-19 03:59:55 dfs Exp $ +# $Id: Makefile,v 1.5 1997-07-31 02:19:04 dfs Exp $ # The complete name of your www host. Example: www.mycompany.com WWWHOST = shevy.skoll.ca @@ -46,7 +46,7 @@ all: # OK, it's abominable. But it works... install: - cp calps hebdate hebps moon sunrise sunset $(SCRIPTDIR) + cp rem2html calps hebdate hebps hebhtml moon sunrise sunset $(SCRIPTDIR) sed $(SEDSCRIPT) < cal_dispatch-DIST > $(SCRIPTDIR)/cal_dispatch sed $(SEDSCRIPT) < hebdate.rem-DIST > $(SCRIPTDIR)/hebdate.rem sed $(SEDSCRIPT) < moon.rem-DIST > $(SCRIPTDIR)/moon.rem @@ -61,4 +61,4 @@ install: chmod 755 $(SCRIPTDIR)/cal_dispatch chmod 755 $(SCRIPTDIR)/calps $(SCRIPTDIR)/hebdate \ $(SCRIPTDIR)/hebps $(SCRIPTDIR)/moon $(SCRIPTDIR)/sunrise \ - $(SCRIPTDIR)/sunset + $(SCRIPTDIR)/sunset $(SCRIPTDIR)/hebhtml $(SCRIPTDIR)/rem2html diff --git a/www/README b/www/README index b7dc5f22..3bc079f3 100644 --- a/www/README +++ b/www/README @@ -1,5 +1,5 @@ README -$Id: README,v 1.4 1997-02-11 01:44:33 dfs Exp $ +$Id: README,v 1.5 1997-07-31 02:19:04 dfs Exp $ HTML Hebrew Calendar Server @@ -20,9 +20,13 @@ server: 1) Edit the Makefile in this directory. See the comments in the Makefile for details. -2) Type "make install" +2) Edit the first line of "rem2html" to reflect the location of + Perl on your system. (Oh yeah, you need Perl for the + HTML Hebrew calendar...) -3) Test it out. It will generate links of the form: +3) Type "make install" + +4) Test it out. It will generate links of the form: http://www.your_server.com/your_cgi-bin/cal_dispatch?what @@ -33,6 +37,7 @@ where "what" is one of: calps -- get a blank PostScript calendar. moon -- show info about moon phases. hebps -- get a PostScript calendar with Jewish holidays. + hebhtml -- get an HTML version of the above (requires Perl.) (Visit http://www.doe.carleton.ca/~dfs/ for previews.) diff --git a/www/cal_dispatch-DIST b/www/cal_dispatch-DIST index 245582b8..cdf1179f 100755 --- a/www/cal_dispatch-DIST +++ b/www/cal_dispatch-DIST @@ -6,7 +6,7 @@ # CAL_DISPATCH -- Shell script for CGI directory to dispatch calendar # commands. # -# $Id: cal_dispatch-DIST,v 1.1 1997-01-16 04:00:26 dfs Exp $ +# $Id: cal_dispatch-DIST,v 1.2 1997-07-31 02:19:05 dfs Exp $ # # WARNING WARNING WARNING -- If your /bin/sh is really GNU's "bash", # make sure you don't have a buggy version which treats char 0xFF as @@ -69,6 +69,11 @@ case "$1" in hebps) exec $DIR/hebps ;; + + hebhtml) + exec $DIR/hebhtml + ;; + esac exit 0 diff --git a/www/calendar.html-DIST b/www/calendar.html-DIST index 003281df..66018573 100644 --- a/www/calendar.html-DIST +++ b/www/calendar.html-DIST @@ -1,6 +1,6 @@ - +
Today's Hebrew Date
PostScript Calendar with Jewish Holidays (Approximately 35 kB)
+ +HTML Calendar with Jewish Holidays (Your browser must support tables.)
diff --git a/www/hebdate.rem-DIST b/www/hebdate.rem-DIST
index 754ee4b7..f9ad2985 100644
--- a/www/hebdate.rem-DIST
+++ b/www/hebdate.rem-DIST
@@ -3,7 +3,7 @@
# This file is part of REMIND.
# Copyright (C) 1992-1997 by David F. Skoll
-# $Id: hebdate.rem-DIST,v 1.1 1997-01-16 04:00:27 dfs Exp $
+# $Id: hebdate.rem-DIST,v 1.2 1997-07-31 02:19:05 dfs Exp $
BANNER %
IF !$PSCAL
@@ -159,15 +159,18 @@ IF ostart <= TODAY() && (TODAY() - ostart < 49)
ENDIF
IF !$PSCAL
-
- REM 20 ++40 msg Click here to get a PostScript calendar (about 35KB) for %m %y, complete with Hebrew dates, Jewish holidays, and moon phases for Ottawa. (This takes a few seconds to generate.)
-
+ REM 20 ++40 msg Also available: a PostScript calendar (about 35KB) for %m %y, complete with Hebrew dates, Jewish holidays, and moon phases for Ottawa. (This takes a few seconds to generate.)
+ REM 20 ++40 msg And: an HTML version of the above. (No moons, and your browser must handle tables.)
ELSE
+IF !HTML
REM Sat PS [psshade(95)]
[trigger(moondate(0))] PS [psmoon(0)]
[trigger(moondate(1))] PS [psmoon(1)]
[trigger(moondate(2))] PS [psmoon(2)]
[trigger(moondate(3))] PS [psmoon(3)]
REM PS Border Border moveto /DayFont findfont 10 scalefont setfont ([hebday(today())] [hebmon(today())]) show
+ELSE
+ REM MSG [hebday(today())] [hebmon(today())]
+ENDIF
ENDIF
diff --git a/www/hebhtml b/www/hebhtml
new file mode 100755
index 00000000..e4aa27f9
--- /dev/null
+++ b/www/hebhtml
@@ -0,0 +1,16 @@
+#!/bin/sh
+# HTML calendar shell script
+#
+# This file is part of REMIND.
+# Copyright (C) 1992-1997 by David F. Skoll
+
+# $Id: hebhtml,v 1.1 1997-07-31 02:19:06 dfs Exp $
+
+echo "Content-Type: text/html"
+echo ""
+$REMIND - <