[MPlayer-dev-eng] [PATCH] version.sh date -r for BSD/OS

Steven M. Schultz sms at 2BSD.COM
Tue Jun 11 05:43:17 CEST 2002


Hi!

	I finally decided to track down why a date.core kept getting
	created  and see that Darwin uses the same  type of 'date -r'
	command as I do.

	Was not sure if it was better to expand the existing if statement
	or simply add a 'elif' so I chose the second method.

	Cheers,
	Steven Schultz
	sms at 2bsd.com

====================cut here====================
--- version.sh.dist	Sun May  5 16:27:20 2002
+++ version.sh	Mon Jun 10 20:39:23 2002
@@ -7,6 +7,9 @@
 elif test `uname -s` = 'Darwin' ; then
         # darwin's date has different meaning for -r
         last_cvs_update=`date +%y%m%d-%H:%M`
+elif test `uname -s` = 'BSD/OS' ; then
+        # non-GNU (BSD) systems also have a 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-dev-eng mailing list