summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-06-20 17:00:52 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-06-20 17:00:52 -0700
commitdbcdfeb30011def77f1d861c0cad427befef5d43 (patch)
tree87e016e83c669bd72f68d29af57a6a8629f68aa2
parentd1e775648cba50537070b3bb598ed7dc7e5cbb64 (diff)
downloadtxr-dbcdfeb30011def77f1d861c0cad427befef5d43.tar.gz
txr-dbcdfeb30011def77f1d861c0cad427befef5d43.tar.bz2
txr-dbcdfeb30011def77f1d861c0cad427befef5d43.zip
* genman.txr (month-name): Filter removed.
Page date is converted to a time value, and later formatted.
-rw-r--r--ChangeLog5
-rw-r--r--genman.txr8
2 files changed, 8 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 40a431ca..e0caf5a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2015-06-20 Kaz Kylheku <kaz@kylheku.com>
+ * genman.txr (month-name): Filter removed.
+ Page date is converted to a time value, and later formatted.
+
+2015-06-20 Kaz Kylheku <kaz@kylheku.com>
+
Remove places.h generation hack.
* Makefile (GEN_HDRS, LISP_TO_C_STRING): Variables removed.
diff --git a/genman.txr b/genman.txr
index b5c65bbd..687576c4 100644
--- a/genman.txr
+++ b/genman.txr
@@ -2,10 +2,6 @@
@# and is now part of manutils.
@# See here: http://primates.ximian.com/~flucifredi/man/
@# It does not work with that other man2html written in Perl.
-@(deffilter month-name
- ("01" "Jan") ("02" "Feb") ("03" "Mar") ("04" "Apr")
- ("05" "May") ("06" "Jun") ("07" "Jul") ("08" "Aug")
- ("09" "Sep") ("10" "Oct") ("11" "Nov") ("12" "Dec"))
@(bind txrhash @(hash :equal-based))
@(bind txlhash @(hash :equal-based))
@(bind tgthash txrhash)
@@ -13,6 +9,8 @@ Content-type: text/html
@(skip 15)
<H1>TXR</H1>
@(skip)Updated: @YEAR-@MONTH-@DAY<BR><A HREF="#index">Index</A>
+@(bind TIME @(make-time-utc (int-str YEAR) (int-str MONTH) (int-str DAY)
+ 0 0 0 nil))
@(collect)
@PREAMBLE
@(until)
@@ -69,7 +67,7 @@ This document was created by
<HEAD><TITLE>Manpage for TXR @VERSION</TITLE>
</HEAD><BODY>
<H2>Manpage for <A HREF="#lbAB">TXR </a>@VERSION</H2>
-<H2>@{MONTH :filter month-name} @DAY, @YEAR</H2>
+<H2>@(time-string-utc TIME "%b %d, %Y")</H2>
<p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">