Mercurial > mplayer.hg
comparison version.sh @ 15643:65a8ce32e9f1
Days should be two digits.
author | diego |
---|---|
date | Sun, 05 Jun 2005 14:17:34 +0000 |
parents | c4e5c20f2dd6 |
children | c3688869c2e5 |
comparison
equal
deleted
inserted
replaced
15642:d48f3ae96eff | 15643:65a8ce32e9f1 |
---|---|
20 # LC_ALL=C sets month/day order and English language in the date string | 20 # LC_ALL=C sets month/day order and English language in the date string |
21 LS=`LC_ALL=C ls -lT CVS/Entries` | 21 LS=`LC_ALL=C ls -lT CVS/Entries` |
22 year=`echo $LS | cut -d' ' -f9 | cut -c 3-4` | 22 year=`echo $LS | cut -d' ' -f9 | cut -c 3-4` |
23 month=`echo $LS | awk -F" " '{printf "%.2d", \ | 23 month=`echo $LS | awk -F" " '{printf "%.2d", \ |
24 (index("JanFebMarAprMayJunJulAugSepOctNovDec",$6)+2)/3}'` | 24 (index("JanFebMarAprMayJunJulAugSepOctNovDec",$6)+2)/3}'` |
25 day=`echo $LS | cut -d' ' -f7` | 25 day=`printf %.2d \` echo $LS | cut -d' ' -f7 \` ` |
26 hour=`echo $LS | cut -d' ' -f8 | cut -d: -f1` | 26 hour=`echo $LS | cut -d' ' -f8 | cut -d: -f1` |
27 minute=`echo $LS | cut -d' ' -f8 | cut -d: -f2` | 27 minute=`echo $LS | cut -d' ' -f8 | cut -d: -f2` |
28 last_cvs_update="${year}${month}${day}-${hour}:${minute}" | 28 last_cvs_update="${year}${month}${day}-${hour}:${minute}" |
29 ;; | 29 ;; |
30 *) | 30 *) |