Mercurial > mplayer.hg
comparison version.sh @ 15511:7a2d85a8da98
Make version string depend of the last change of CVS/Entries for Darwin.
loosely based on a patch by Chris Roccati <roccati at pobox dot com>
author | diego |
---|---|
date | Wed, 18 May 2005 21:55:52 +0000 |
parents | e209ca6a0b3e |
children | 3f20ae0bd86e |
comparison
equal
deleted
inserted
replaced
15510:97a0be4ec817 | 15511:7a2d85a8da98 |
---|---|
17 minute=`echo $hms | awk -F":" '{print $2}'` | 17 minute=`echo $hms | awk -F":" '{print $2}'` |
18 year=`echo $LS | awk -F" " '{print $9}'` | 18 year=`echo $LS | awk -F" " '{print $9}'` |
19 last_cvs_update="${year}${month}${day}-${hour}:${minute}" | 19 last_cvs_update="${year}${month}${day}-${hour}:${minute}" |
20 ;; | 20 ;; |
21 Darwin) | 21 Darwin) |
22 # darwin's date has different meaning for -r | 22 # Darwin/BSD 'date -r' does not print modification time |
23 last_cvs_update=`date +%y%m%d-%H:%M` | 23 LS=`ls -lT CVS/Entries` |
24 year=`echo $LS | cut -d' ' -f9 | cut -c 3-4` | |
25 month=`echo $LS | awk -F" " '{printf "%.2d", \ | |
26 (index("JanFebMarAprMayJunJulAugSepOctNovDec",$7)+2)/3}'` | |
27 day=`echo $LS | cut -d' ' -f6` | |
28 hour=`echo $LS | cut -d' ' -f8 | cut -d: -f1` | |
29 minute=`echo $LS | cut -d' ' -f8 | cut -d: -f2` | |
30 last_cvs_update="${year}${month}${day}-${hour}:${minute}" | |
24 ;; | 31 ;; |
25 *) | 32 *) |
26 last_cvs_update=`date +%y%m%d-%H:%M` | 33 last_cvs_update=`date +%y%m%d-%H:%M` |
27 ;; | 34 ;; |
28 esac | 35 esac |