2001-04-14 22:26:27 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2001-06-05 18:40:44 +00:00
|
|
|
last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null`
|
2002-05-03 19:17:19 +00:00
|
|
|
if test $? -ne 0 ; then
|
|
|
|
# probably no gnu date installed(?), use current date
|
|
|
|
last_cvs_update=`date +%y%m%d-%H:%M`
|
|
|
|
elif test `uname -s` = 'Darwin' ; then
|
|
|
|
# darwin's date has different meaning for -r
|
|
|
|
last_cvs_update=`date +%y%m%d-%H:%M`
|
2001-06-05 18:40:44 +00:00
|
|
|
fi
|
2001-12-03 19:13:34 +00:00
|
|
|
|
2001-12-09 01:24:01 +00:00
|
|
|
echo "#define VERSION \"CVS-${last_cvs_update}-$1 \"" >version.h
|