From 0597f58b9bb4a9e8db08a2a5d6083574b6f99a26 Mon Sep 17 00:00:00 2001 From: rathann Date: Tue, 6 Jun 2006 10:42:30 +0000 Subject: Put SVN revision in the version string Note: somebody please port this to *BSD|Darwin git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18594 b3059339-0415-0410-9bf9-f77b7e298cf2 --- version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'version.sh') diff --git a/version.sh b/version.sh index ca24467e1c..f83ad5222a 100755 --- a/version.sh +++ b/version.sh @@ -3,7 +3,7 @@ OS=`uname -s` case "$OS" in CYGWIN*|Linux|MINGW*) - last_cvs_update=`date -r .svn +%y%m%d-%H:%M 2>/dev/null` + last_cvs_update=r`grep committed-rev .svn/entries | head -n 1 | cut -d '"' -f 2 2>/dev/null` ;; Darwin|*BSD*) # BSD 'date -r' does not print modification time -- cgit v1.2.3