# HG changeset patch # User diego # Date 1118080304 0 # Node ID 5fa1221fb597523fbb5e0d78b2d9eb4972bf801f # Parent 9aaf33c037da261165bf722e11699af49994d9cc BSD/OS works same as the other BSDs, tested by Steven M. Schultz. diff -r 9aaf33c037da -r 5fa1221fb597 version.sh --- a/version.sh Mon Jun 06 17:47:51 2005 +0000 +++ b/version.sh Mon Jun 06 17:51:44 2005 +0000 @@ -5,17 +5,7 @@ CYGWIN*|Linux) last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null` ;; - BSD/OS) - LS=`ls -lT CVS/Entries` - month=`echo $LS | awk -F" " '{print $6}'` - day=`echo $LS | awk -F" " '{print $7}'` - hms=`echo $LS | awk -F" " '{print $8}'` - hour=`echo $hms | awk -F":" '{print $1}'` - minute=`echo $hms | awk -F":" '{print $2}'` - year=`echo $LS | awk -F" " '{print $9}'` - last_cvs_update="${year}${month}${day}-${hour}:${minute}" - ;; - Darwin|*BSD) + Darwin|*BSD*) # BSD 'date -r' does not print modification time # LC_ALL=C sets month/day order and English language in the date string # The if in the awk call works around wrong day/month order.