for review: list archive change
Peter David ROSS
petdr at cs.mu.OZ.AU
Wed Sep 9 17:06:20 AEST 1998
Hi,
Tyson for you to look at.
Pete.
===================================================================
Estimated hours taken: 1
Put the menubar down the side of the mail archive.
mailing-lists/Makefile:
Generate the header and footer from the blank page.
mailing-lists/archive2html.sh:
Put the header and footer around the mail message.
mailing-lists/blank.php3:
mailing-lists/include/blank.inc:
Make a blank page which is used later to generate the header and
footer.
Index: Makefile
===================================================================
RCS file: /home/staff/zs/imp/w3/mailing-lists/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile 1998/09/04 07:08:56 1.2
+++ Makefile 1998/09/09 07:00:34
@@ -1,7 +1,20 @@
target: html
-HTML= mailing-lists.html
+HTML= blank.html mailing-lists.html
DIRS=mercury-users mercury-developers
ROOT=..
+
+html: local_html
+
+local_html: header.inc footer.inc
+
+header.inc: blank.html
+ echo "May need to rearchive the hypermail archive"
+ cat blank.html | sed -e 's/\.\./\.\.\/\.\./g' | \
+ tail +6 | tac | tail +6 | tac > header.inc
+
+footer.inc: blank.html
+ cat blank.html | sed -e 's/\.\./\.\.\/\.\./g' | \
+ tail -6 | tail +3 > footer.inc
include ../Makefile.common
Index: archive2html.sh
===================================================================
RCS file: /home/staff/zs/imp/w3/mailing-lists/archive2html.sh,v
retrieving revision 1.3
diff -u -r1.3 archive2html.sh
--- archive2html.sh 1998/09/08 05:37:37 1.3
+++ archive2html.sh 1998/09/09 06:28:21
@@ -53,4 +53,7 @@
\*) echo "archive2html: incorrect month"; exit 1 ;;
esac
-hypermail -x -m $filename -a "../../mailing-lists.html" -l "$file $month $year"
+set -x
+
+hypermail -x -m $filename -a "../../mailing-lists.html" \
+ -l "$file $month $year" -t "../header.inc" -e "../footer.inc"
New File: blank.php3
===================================================================
<HTML>
<?
$title="WARNING: YOU SHOULD NEVER GET TO THIS PAGE";
$dir="mailing-lists";
$root="..";
$include="blank.inc";
include "$root/include/template.inc"
?>
</HTML>
New File: 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