comparison version.sh @ 15666:5fa1221fb597

BSD/OS works same as the other BSDs, tested by Steven M. Schultz.
author diego
date Mon, 06 Jun 2005 17:51:44 +0000
parents 5c5219508907
children 8fc10647e146
comparison
equal deleted inserted replaced
15665:9aaf33c037da 15666:5fa1221fb597
3 OS=`uname -s` 3 OS=`uname -s`
4 case "$OS" in 4 case "$OS" in
5 CYGWIN*|Linux) 5 CYGWIN*|Linux)
6 last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null` 6 last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null`
7 ;; 7 ;;
8 BSD/OS) 8 Darwin|*BSD*)
9 LS=`ls -lT CVS/Entries`
10 month=`echo $LS | awk -F" " '{print $6}'`
11 day=`echo $LS | awk -F" " '{print $7}'`
12 hms=`echo $LS | awk -F" " '{print $8}'`
13 hour=`echo $hms | awk -F":" '{print $1}'`
14 minute=`echo $hms | awk -F":" '{print $2}'`
15 year=`echo $LS | awk -F" " '{print $9}'`
16 last_cvs_update="${year}${month}${day}-${hour}:${minute}"
17 ;;
18 Darwin|*BSD)
19 # BSD 'date -r' does not print modification time 9 # BSD 'date -r' does not print modification time
20 # 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
21 # 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.
22 last_cvs_update=`LC_ALL=C ls -lT CVS/Entries | \ 12 last_cvs_update=`LC_ALL=C ls -lT CVS/Entries | \
23 awk '{ \ 13 awk '{ \