mirror of
https://github.com/mpv-player/mpv
synced 2025-02-26 02:05:31 +00: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:
parent
35277c2e40
commit
a7dc941319
11
version.sh
11
version.sh
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user