Mercurial > mplayer.hg
comparison version.sh @ 5949:142e0fa289d4
Fix for darwins date
author | atmos4 |
---|---|
date | Fri, 03 May 2002 19:17:19 +0000 |
parents | d31a4f29aed1 |
children | a49219323787 |
comparison
equal
deleted
inserted
replaced
5948:efce49503129 | 5949:142e0fa289d4 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null` | 3 last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null` |
4 if [ $? -ne 0 ]; then | 4 if test $? -ne 0 ; then |
5 # probably no gnu date installed(?), use current date | 5 # probably no gnu date installed(?), use current date |
6 last_cvs_update=`date +%y%m%d-%H:%M` | 6 last_cvs_update=`date +%y%m%d-%H:%M` |
7 elif test `uname -s` = 'Darwin' ; then | |
8 # darwin's date has different meaning for -r | |
9 last_cvs_update=`date +%y%m%d-%H:%M` | |
7 fi | 10 fi |
8 | 11 |
9 echo "#define VERSION \"CVS-${last_cvs_update}-$1 \"" >version.h | 12 echo "#define VERSION \"CVS-${last_cvs_update}-$1 \"" >version.h |