diff: Update web tools since Debian 2.1 upgrade on hydra
Peter Ross
petdr at cs.mu.OZ.AU
Thu Mar 25 12:33:40 AEDT 1999
Hi,
===================================================================
Estimated hours taken: 3
Update the scripts so that they work with the new versions of hypermail
and htdig installed on hydra.
mailing-lists/Makefile:
Generate the correct header and footer files.
mailing-lists/archive2html.sh:
Change to using command line options to environment variables.
mailing-lists/blank.php3:
We now need the <HTML> and <TITLE> tags. Add the "%s" to the title
which gets substituted to the correct title.
Index: mailing-lists/Makefile
===================================================================
RCS file: /home/staff/zs/imp/w3/mailing-lists/Makefile,v
retrieving revision 1.5
diff -u -b -r1.5 Makefile
--- Makefile 1998/11/19 07:55:02 1.5
+++ Makefile 1999/03/25 01:15:52
@@ -11,10 +11,10 @@
header.inc: blank.html
echo "May need to rearchive the hypermail archive"
cat blank.html | sed -e 's/\.\./\.\.\/\.\.\/\.\./g' | \
- tail +4 | tac | tail +7 | tac > header.inc
+ tac | tail +7 | tac > header.inc
footer.inc: blank.html
cat blank.html | sed -e 's/\.\./\.\.\/\.\.\/\.\./g' | \
- tail -6 | head -n 3 > footer.inc
+ tail -6 > footer.inc
include ../Makefile.common
Index: mailing-lists/archive2html.sh
===================================================================
RCS file: /home/staff/zs/imp/w3/mailing-lists/archive2html.sh,v
retrieving revision 1.4
diff -u -b -r1.4 archive2html.sh
--- archive2html.sh 1998/09/09 07:43:57 1.4
+++ archive2html.sh 1999/03/25 01:27:44
@@ -12,6 +12,16 @@
# How many thread levels all the replies should be indented.
export HM_THRDLEVELS=10
+ # Header/Footer files for the index pages
+ # Well at least the man page says that it should be the file,
+ # but for some reason it must be the contents of the file.
+export HM_IHTMLHEADERFILE="`cat header.inc`"
+export HM_IHTMLFOOTERFILE="`cat footer.inc`"
+
+ # Header/Footer files for the message pages
+export HM_MHTMLHEADERFILE="`cat header.inc`"
+export HM_MHTMLFOOTERFILE="`cat footer.inc`"
+
while getopts ad:f:m:uy: flag ; do
case $flag in
a) archive=true ;;
@@ -55,5 +65,4 @@
set -x
-hypermail -x -m $filename -a "../../mailing-lists.html" \
- -l "$file $month $year" -t "../header.inc" -e "../footer.inc"
+hypermail -x -m $filename -a "../../mailing-lists.html" -l "$file $month $year"
Index: mailing-lists/blank.php3
===================================================================
RCS file: /home/staff/zs/imp/w3/mailing-lists/blank.php3,v
retrieving revision 1.2
diff -u -b -r1.2 blank.php3
--- blank.php3 1998/09/23 02:00:58 1.2
+++ blank.php3 1999/03/25 01:24:10
@@ -1,6 +1,6 @@
<HTML>
<?
- $title="";
+ $title="%s";
$dir="mailing-lists";
$root="..";
$include="blank.inc";
----
+----------------------------------------------------------------------+
| Peter Ross M Sci/Eng Melbourne Uni |
| petdr at cs.mu.oz.au WWW: www.cs.mu.oz.au/~petdr/ ph: +61 3 9344 9158 |
+----------------------------------------------------------------------+
More information about the developers
mailing list