[Mplayer-cvslog] CVS: main version.sh,1.7,1.8

Atmosfear atmos4 at mplayerhq.hu
Fri May 3 21:17:22 CEST 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv21522

Modified Files:
	version.sh 
Log Message:
Fix for darwins date


Index: version.sh
===================================================================
RCS file: /cvsroot/mplayer/main/version.sh,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- version.sh	9 Dec 2001 01:24:01 -0000	1.7
+++ version.sh	3 May 2002 19:17:19 -0000	1.8
@@ -1,9 +1,12 @@
 #!/bin/sh
 
 last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null`
-if [ $? -ne 0 ]; then
-	# probably no gnu date installed(?), use current date
-	last_cvs_update=`date +%y%m%d-%H:%M`
+if test $? -ne 0 ; then
+        # probably no gnu date installed(?), use current date
+        last_cvs_update=`date +%y%m%d-%H:%M`
+elif test `uname -s` = 'Darwin' ; then
+        # darwin's date has different meaning for -r
+        last_cvs_update=`date +%y%m%d-%H:%M`
 fi
 
 echo "#define VERSION \"CVS-${last_cvs_update}-$1 \"" >version.h




More information about the MPlayer-cvslog mailing list