2001-04-15 00:26:27 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2001-06-05 20:40:44 +02:00
|
|
|
last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null`
|
2002-05-03 21:17:19 +02: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 20:40:44 +02:00
|
|
|
fi
|
2001-12-03 20:13:34 +01:00
|
|
|
|
2002-09-20 14:50:04 +02:00
|
|
|
extra=""
|
|
|
|
if test $1 ; then
|
|
|
|
extra="-$1"
|
|
|
|
fi
|
|
|
|
echo "#define VERSION \"CVS-${last_cvs_update}${extra} \"" >version.h
|