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
|
|
|
|
2002-09-20 12:50:04 +00:00
|
|
|
extra=""
|
2002-09-20 15:46:13 +00:00
|
|
|
if test "$1" ; then
|
2002-09-20 12:50:04 +00:00
|
|
|
extra="-$1"
|
|
|
|
fi
|
|
|
|
echo "#define VERSION \"CVS-${last_cvs_update}${extra} \"" >version.h
|