6
last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null`
9
# BSD 'date -r' does not print modification time
10
# LC_ALL=C sets month/day order and English language in the date string
11
# The if in the awk call works around wrong day/month order.
12
last_cvs_update=`LC_ALL=C ls -lT CVS/Entries | \
15
month=index(" JanFebMarAprMayJunJulAugSepOctNovDec", $6); \
18
month=index(" JanFebMarAprMayJunJulAugSepOctNovDec",$7); } \
19
printf("%s%.02d%.02d-%s", \
20
substr($9, 3, 2), (month+1)/3, day, substr($8, 0, 5)); \
24
last_cvs_update=`date +%y%m%d-%H:%M`
32
echo "#define VERSION \"dev-CVS-${last_cvs_update}${extra}\"" >version.h