1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00

Make version string depend of the last change of CVS/Entries for Darwin.

loosely based on a patch by Chris Roccati <roccati at pobox dot com>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15512 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2005-05-18 21:55:52 +00:00
parent 35277c2e40
commit a7dc941319

View File

@ -19,8 +19,15 @@ case "$OS" in
last_cvs_update="${year}${month}${day}-${hour}:${minute}"
;;
Darwin)
# darwin's date has different meaning for -r
last_cvs_update=`date +%y%m%d-%H:%M`
# Darwin/BSD 'date -r' does not print modification time
LS=`ls -lT CVS/Entries`
year=`echo $LS | cut -d' ' -f9 | cut -c 3-4`
month=`echo $LS | awk -F" " '{printf "%.2d", \
(index("JanFebMarAprMayJunJulAugSepOctNovDec",$7)+2)/3}'`
day=`echo $LS | cut -d' ' -f6`
hour=`echo $LS | cut -d' ' -f8 | cut -d: -f1`
minute=`echo $LS | cut -d' ' -f8 | cut -d: -f2`
last_cvs_update="${year}${month}${day}-${hour}:${minute}"
;;
*)
last_cvs_update=`date +%y%m%d-%H:%M`