Inconsistance in snapshots repository

Gerald Pfeifer pfeifer@dbai.tuwien.ac.at
Thu Apr 23 13:31:00 GMT 1998


On Tue, 14 Apr 1998, Jeffrey A Law wrote:
>> On another related note: What happended to the idea of bumping the date
>> more regularily, e.g., daily?
> No time.  Like most things a contribution of code would greatly
> speed up the process.

I'm not sure whether the following is what you have asked for, but...
Here we go:

-------- cut here --------
#!/bin/sh

cvs update version.c 

CURR_DATE=`date +"%Y%m%d"`
OLD_VERSION=`cat version.c`

sed -e "s/\(.*egcs-[^ ]*\) [^ ]*/\1 ${CURR_DATE}/" >version.c <<HERE
$OLD_VERSION
HERE

cvs commit -m "Daily bump." version.c 
-------- cut here --------

Is that useable for you?


>> And on a final related note, I suggest to use 19980404 instead of 980404,
>> unless egcs won't be Y2000-compliant! <g>
> Probably a good idea [...]

Indeed I noticed that the latest snapshot now carries a 4-digit year, so
none can complain about my script introducing this... ;-)

Gerald
-- 
Gerald Pfeifer (Jerry)      Vienna University of Technology
pfeifer@dbai.tuwien.ac.at   http://www.dbai.tuwien.ac.at/~pfeifer/




More information about the Gcc mailing list