mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
-- Added calendar.html-DIST.
-- Fixed bugs in missing newlines after Content-Type: header in hebdate and hebps.
This commit is contained in:
23
www/Makefile
23
www/Makefile
@@ -2,21 +2,26 @@
|
||||
# This file is part of REMIND.
|
||||
# Copyright (C) 1992-1997 by David F. Skoll
|
||||
|
||||
# $Id: Makefile,v 1.3 1997-01-16 04:31:11 dfs Exp $
|
||||
# $Id: Makefile,v 1.4 1997-01-19 03:59:55 dfs Exp $
|
||||
|
||||
# The complete name of your www host. Example: www.mycompany.com
|
||||
WWWHOST = www.skoll.ca
|
||||
WWWHOST = shevy.skoll.ca
|
||||
# WWWHOST = www.mycompany.com
|
||||
|
||||
# The complete path to where the scripts actually live, as seen by
|
||||
# the UNIX operating system.
|
||||
SCRIPTDIR = /var/lib/httpd/cgi-bin
|
||||
SCRIPTDIR = /var/web/cgi-bin
|
||||
# SCRIPTDIR = /home/dfs/Remind/www/TEST
|
||||
|
||||
# Where the scripts live as seen from the outside world. If
|
||||
# they live in WWWHOST/cgi-bin, supply /cgi-bin
|
||||
CGIDIR = /cgi-bin
|
||||
|
||||
# The complete path to the HTML file "calendar.html". This is a sample
|
||||
# file containing links to all the scripts. This path should be the
|
||||
# path as seen by the UNIX operating system
|
||||
HTMLDIR = /home/dfs/public_html
|
||||
|
||||
# Location. Typically, the name of your city or town. Example: Ottawa
|
||||
LOCATION = Ottawa
|
||||
# LOCATION = New York
|
||||
@@ -42,15 +47,17 @@ all:
|
||||
# OK, it's abominable. But it works...
|
||||
install:
|
||||
cp calps hebdate hebps 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
|
||||
sed $(SEDSCRIPT) < sunrise.rem-DIST > $(SCRIPTDIR)/sunrise.rem
|
||||
sed $(SEDSCRIPT) < sunset.rem-DIST > $(SCRIPTDIR)/sunset.rem
|
||||
sed $(SEDSCRIPT) < cal_dispatch-DIST > $(SCRIPTDIR)/cal_dispatch
|
||||
sed $(SEDSCRIPT) < hebdate.rem-DIST > $(SCRIPTDIR)/hebdate.rem
|
||||
sed $(SEDSCRIPT) < moon.rem-DIST > $(SCRIPTDIR)/moon.rem
|
||||
sed $(SEDSCRIPT) < sunrise.rem-DIST > $(SCRIPTDIR)/sunrise.rem
|
||||
sed $(SEDSCRIPT) < sunset.rem-DIST > $(SCRIPTDIR)/sunset.rem
|
||||
sed $(SEDSCRIPT) < calendar.html-DIST > $(HTMLDIR)/calendar.html
|
||||
chmod 644 $(SCRIPTDIR)/sunrise.rem
|
||||
chmod 644 $(SCRIPTDIR)/moon.rem
|
||||
chmod 644 $(SCRIPTDIR)/hebdate.rem
|
||||
chmod 644 $(SCRIPTDIR)/sunset.rem
|
||||
chmod 644 $(HTMLDIR)/calendar.html
|
||||
chmod 755 $(SCRIPTDIR)/cal_dispatch
|
||||
chmod 755 $(SCRIPTDIR)/calps $(SCRIPTDIR)/hebdate \
|
||||
$(SCRIPTDIR)/hebps $(SCRIPTDIR)/moon $(SCRIPTDIR)/sunrise \
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
README
|
||||
$Id: README,v 1.2 1997-01-16 04:05:31 dfs Exp $
|
||||
$Id: README,v 1.3 1997-01-19 03:59:55 dfs Exp $
|
||||
|
||||
HTML Hebrew Calendar Server
|
||||
|
||||
@@ -35,6 +35,10 @@ where "what" is one of:
|
||||
|
||||
(Visit http://www.doe.carleton.ca/~dfs/ for previews.)
|
||||
|
||||
All of these links will be set up in a sample HTML document
|
||||
called "calendar.html" and installed in the HTMLDIR you specified
|
||||
in the Makefile.
|
||||
|
||||
4) Enjoy!
|
||||
|
||||
|
||||
|
||||
27
www/calendar.html-DIST
Normal file
27
www/calendar.html-DIST
Normal file
@@ -0,0 +1,27 @@
|
||||
<HTML>
|
||||
<! Sample HTML file with links to the calendar stuff >
|
||||
<! $Id: calendar.html-DIST,v 1.1 1997-01-19 03:59:56 dfs Exp $ >
|
||||
<HEAD>
|
||||
<TITLE>David Skoll's Calendar Server</TITLE>
|
||||
</HEAD>
|
||||
|
||||
<BODY>
|
||||
<H1>David Skoll's Calendar Server</H1>
|
||||
|
||||
<a HREF="http://your.machine/your.dir/cal_dispatch?sunrise">
|
||||
Sunrise Information</a><P>
|
||||
<a HREF="http://your.machine/your.dir/cal_dispatch?sunset">
|
||||
Sunset Information</a><P>
|
||||
<a HREF="http://your.machine/your.dir/cal_dispatch?moon">
|
||||
Moon Phase Information</a><P>
|
||||
<a HREF="http://your.machine/your.dir/cal_dispatch?calps">
|
||||
Blank PostScript Calendar</a> (Approximately 20kB)<P>
|
||||
<a HREF="http://your.machine/your.dir/cal_dispatch?hebdate">
|
||||
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>
|
||||
<HR>
|
||||
<a HREF="ftp://ftp.doe.carleton.ca/pub/remind-3.0">
|
||||
Get the Remind software</a> that provides this service.<P>
|
||||
|
||||
</BODY>
|
||||
@@ -4,9 +4,10 @@
|
||||
# This file is part of REMIND.
|
||||
# Copyright (C) 1992-1997 by David F. Skoll
|
||||
|
||||
# $Id: hebdate,v 1.1 1997-01-16 04:00:27 dfs Exp $
|
||||
# $Id: hebdate,v 1.2 1997-01-19 03:59:56 dfs Exp $
|
||||
|
||||
echo Content-type: text/html
|
||||
echo ""
|
||||
|
||||
cat <<EOM
|
||||
<HTML>
|
||||
|
||||
@@ -4,11 +4,13 @@
|
||||
# This file is part of REMIND.
|
||||
# Copyright (C) 1992-1997 by David F. Skoll
|
||||
|
||||
# $Id: hebps,v 1.1 1997-01-16 04:00:27 dfs Exp $
|
||||
# $Id: hebps,v 1.2 1997-01-19 03:59:56 dfs Exp $
|
||||
|
||||
# Figure out the month: If day <= 20, use this month; otherwise, use
|
||||
# next month.
|
||||
echo "Content-type: application/postscript"
|
||||
echo ""
|
||||
|
||||
$REMIND - <<EOR
|
||||
BANNER %
|
||||
REM 20 ++40 RUN $REMIND -p $DIR/hebdate.rem %m %y | $REM2PS -e -c3
|
||||
|
||||
Reference in New Issue
Block a user