mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
-- Added HTML hebrew calendar; fixed wording here and there.
This commit is contained in:
@@ -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
|
||||
|
||||
11
www/README
11
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.)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<HTML>
|
||||
<!-- Sample HTML file with links to the calendar stuff -->
|
||||
<!-- $Id: calendar.html-DIST,v 1.3 1997-07-06 14:34:41 dfs Exp $ -->
|
||||
<!-- $Id: calendar.html-DIST,v 1.4 1997-07-31 02:19:05 dfs Exp $ -->
|
||||
<HEAD>
|
||||
<TITLE>David Skoll's Calendar Server</TITLE>
|
||||
</HEAD>
|
||||
@@ -20,6 +20,8 @@ Blank PostScript Calendar</a> (Approximately 20kB)<P>
|
||||
Today's Hebrew Date</a><P>
|
||||
<a HREF="http://your.machine/your.dir/cal_dispatch?hebps">
|
||||
PostScript Calendar with Jewish Holidays</a> (Approximately 35 kB)<P>
|
||||
<a HREF="http://your.machine/your.dir/cal_dispatch?hebhtml">
|
||||
HTML Calendar with Jewish Holidays</a> (Your browser must support tables.)<P>
|
||||
<HR>
|
||||
<a HREF="ftp://ftp.doe.carleton.ca/pub/remind-3.0">
|
||||
Get the Remind software</a> that provides this service.<P>
|
||||
|
||||
@@ -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 <a HREF="http://your.machine/your.dir/cal_dispatch?hebps">here</a> 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 HREF="http://your.machine/your.dir/cal_dispatch?hebps">a PostScript calendar</a> (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: <a HREF="http://your.machine/your.dir/cal_dispatch?hebhtml">an HTML version</a> 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
|
||||
|
||||
16
www/hebhtml
Executable file
16
www/hebhtml
Executable file
@@ -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 - <<EOR
|
||||
BANNER %
|
||||
REM 20 ++40 RUN $REMIND -iHTML=1 -p $DIR/hebdate.rem %m %y | $DIR/rem2html
|
||||
EOR
|
||||
|
||||
exit 0
|
||||
@@ -4,7 +4,7 @@
|
||||
# This file is part of REMIND.
|
||||
# Copyright (C) 1992-1997 by David F. Skoll
|
||||
|
||||
# $Id: hebps,v 1.2 1997-01-19 03:59:56 dfs Exp $
|
||||
# $Id: hebps,v 1.3 1997-07-31 02:19:06 dfs Exp $
|
||||
|
||||
# Figure out the month: If day <= 20, use this month; otherwise, use
|
||||
# next month.
|
||||
@@ -13,7 +13,7 @@ echo ""
|
||||
|
||||
$REMIND - <<EOR
|
||||
BANNER %
|
||||
REM 20 ++40 RUN $REMIND -p $DIR/hebdate.rem %m %y | $REM2PS -e -c3
|
||||
REM 20 ++40 RUN $REMIND -iHTML=0 -p $DIR/hebdate.rem %m %y | $REM2PS -e -c3
|
||||
EOR
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user