Mercurial > mplayer.hg
comparison version.sh @ 18559:ff09faee7c14
SVN switch: get version date from .svn subdir instead of CVS/Entries
author | rtogni |
---|---|
date | Sun, 04 Jun 2006 22:48:59 +0000 |
parents | 8fc10647e146 |
children | 2dd3122e41f4 |
comparison
equal
deleted
inserted
replaced
18558:4928dd61f136 | 18559:ff09faee7c14 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 OS=`uname -s` | 3 OS=`uname -s` |
4 case "$OS" in | 4 case "$OS" in |
5 CYGWIN*|Linux|MINGW*) | 5 CYGWIN*|Linux|MINGW*) |
6 last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null` | 6 last_cvs_update=`date -r .svn +%y%m%d-%H:%M 2>/dev/null` |
7 ;; | 7 ;; |
8 Darwin|*BSD*) | 8 Darwin|*BSD*) |
9 # BSD 'date -r' does not print modification time | 9 # BSD 'date -r' does not print modification time |
10 # LC_ALL=C sets month/day order and English language in the date string | 10 # LC_ALL=C sets month/day order and English language in the date string |
11 # The if in the awk call works around wrong day/month order. | 11 # The if in the awk call works around wrong day/month order. |
12 last_cvs_update=`LC_ALL=C ls -lT CVS/Entries | \ | 12 last_cvs_update=`LC_ALL=C ls -lT .svn | \ |
13 awk '{ \ | 13 awk '{ \ |
14 day=$7; \ | 14 day=$7; \ |
15 month=index(" JanFebMarAprMayJunJulAugSepOctNovDec", $6); \ | 15 month=index(" JanFebMarAprMayJunJulAugSepOctNovDec", $6); \ |
16 if(month==0) { \ | 16 if(month==0) { \ |
17 day=$6; \ | 17 day=$6; \ |