axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] Version numbers and merging improvements


From: daly
Subject: [Axiom-developer] Version numbers and merging improvements
Date: Mon, 25 Jun 2007 13:32:18 -0500

If you know the SVN command that will show the revision number it
would be possible to pipe the revision number into the file
mnt/sys/timestamp. The date and time stamp of this file is used to
generate the *yearweek* variable. The value of this variable is
set at build time in src/interp/Makefile. To quote from that file:



Axiom versions are given as a string of the form:
"Sunday September 21, 2003 at 20:38:05 "
which describes the day, date, and time of the build.
This is used for reporting bugs. It is only partially useful
in identifying which source code was used. Ideally we could create
a tar file of all of the date/time stamps of all of the source files
and use the MD5 hash of that file as the version stamp. Ultimately
though, this would be chasing the elusive "perfect information" idea.

A new variable [[boot::*build-version*]] is set and used by the 
{\tt yearweek} function to display the version number of the Axiom build.
This information is set by hand in the top level Makefile.

TIMESTAMP=${MNT}/${SYS}/timestamp
(progn 
 (setq timestampe "${TIMESTAMP}")
 (setq boot::*build-version* "${VERSION}")
 (yearweek))




The actual banner text is created in yearweek (src/interp/util.lisp).
If the mnt/sys/timestamp file contained the revision number at the
time of the build it would be trivial read the file and add it to 
the banner.


Tim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]