mirror of
https://github.com/mpv-player/mpv
synced 2025-03-15 03:14:30 +01:00
SVN switch: get version date from .svn subdir instead of CVS/Entries
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18560 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9da9317579
commit
09208431ab
@ -3,13 +3,13 @@
|
|||||||
OS=`uname -s`
|
OS=`uname -s`
|
||||||
case "$OS" in
|
case "$OS" in
|
||||||
CYGWIN*|Linux|MINGW*)
|
CYGWIN*|Linux|MINGW*)
|
||||||
last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null`
|
last_cvs_update=`date -r .svn +%y%m%d-%H:%M 2>/dev/null`
|
||||||
;;
|
;;
|
||||||
Darwin|*BSD*)
|
Darwin|*BSD*)
|
||||||
# BSD 'date -r' does not print modification time
|
# BSD 'date -r' does not print modification time
|
||||||
# LC_ALL=C sets month/day order and English language in the date string
|
# LC_ALL=C sets month/day order and English language in the date string
|
||||||
# The if in the awk call works around wrong day/month order.
|
# The if in the awk call works around wrong day/month order.
|
||||||
last_cvs_update=`LC_ALL=C ls -lT CVS/Entries | \
|
last_cvs_update=`LC_ALL=C ls -lT .svn | \
|
||||||
awk '{ \
|
awk '{ \
|
||||||
day=$7; \
|
day=$7; \
|
||||||
month=index(" JanFebMarAprMayJunJulAugSepOctNovDec", $6); \
|
month=index(" JanFebMarAprMayJunJulAugSepOctNovDec", $6); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user