This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Current date?
- From: Robert McIlvride <robert at cogent dot ca>
- To: <docbook-apps at lists dot oasis-open dot org>
- Date: Wed, 2 Apr 2003 08:31:11 -0500
- Subject: Re: [docbook-apps] Current date?
- Organization: Cogent Real-Time Systems, Inc.
- References: <1048863783.1339.0.camel@mi6.local><3E8ABFF2.3090009@goolo.com>
Hi,
Speaking of dates and timestamps, we had a need to timestamp our set of
books with today's date, but keep the timestamps of the books within the
set at the date of the last change. We wrote a shell script that reads
the source directory of each book, gets the date of the file that was
changed most recently, and writes a file with entities for each book,
with that date. That file itself is then included as an entity in the
common entity file. You can view the script here:
http://developers.cogentrts.com/cogent/prepdoc/pd-latestdate.html
(We're using SGML, but this would work with XML too.)
Cheerio!
Bob
...
> > Is there something I can put in my docbook, that will represent the
> > current date, so that when the stylesheets process my file, the current
> > date is put there?
>
> * generate a timestamp (this is a M$-DOS example)
> echo %date% %time% >timestamp.txt
>
...
---------------------------------------
Robert McIlvride (robert at cogent dot ca)
Cogent Real-Time Systems (www.cogent.ca)
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org