summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib-src/rcs2log10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib-src/rcs2log b/lib-src/rcs2log
index d5fe742e39f..279e78069fa 100755
--- a/lib-src/rcs2log
+++ b/lib-src/rcs2log
@@ -2,7 +2,7 @@
# RCS to ChangeLog generator
-# $Id: rcs2clog,v 1.2 1992/02/05 04:29:40 eggert Exp $
+# $Id: rcs2clog,v 1.2 1992/02/05 04:31:18 eggert Exp eggert $
# Generate a change log prefix from RCS/* and the existing ChangeLog (if any).
# Output the new prefix to standard output.
@@ -35,9 +35,11 @@ done
datearg=-d'>1970'
if test -s ChangeLog
then
- date=`sed 1q <ChangeLog` || exit
- set x $date; shift
- datearg="-d>$1 $2 $3 $4 $5"
+ e='s/^\(...\) \(...\) \(..\) \(..:..:..\) \(....\) .*/\1 \2 \3 \4 \5/p; 1q'
+ date=`sed -n "$e" <ChangeLog` || exit
+ case $date in
+ ?*) datearg="-d>$date"
+ esac
fi
rlogout=/tmp/chg$$