diff options
author | Paul Eggert <eggert@twinsun.com> | 1997-06-26 01:00:03 +0000 |
---|---|---|
committer | Paul Eggert <eggert@twinsun.com> | 1997-06-26 01:00:03 +0000 |
commit | fc7c51c66ca4038a197b94da825e4cfdcdc5359e (patch) | |
tree | 081c3f04f19f1cc0ecd2ffd718cd027089ca2544 /lib-src | |
parent | dac2c06e2bd699a9af6f44ed91b91727a136941f (diff) | |
download | emacs-fc7c51c66ca4038a197b94da825e4cfdcdc5359e.tar.gz |
Don't assign to $0 in awk; some awks don't allow this.
Diffstat (limited to 'lib-src')
-rwxr-xr-x | lib-src/rcs2log | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/lib-src/rcs2log b/lib-src/rcs2log index ded43536deb..099d4a3602e 100755 --- a/lib-src/rcs2log +++ b/lib-src/rcs2log @@ -28,7 +28,7 @@ Options: Report bugs to <bug-gnu-emacs@prep.ai.mit.edu>.' -Id='$Id: rcs2log,v 1.40 1997/05/11 20:02:32 eggert Exp eggert $' +Id='$Id: rcs2log,v 1.41 1997/05/13 22:44:08 eggert Exp eggert $' # Copyright 1992, 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc. @@ -522,11 +522,12 @@ $AWK <$rlogout ' } /^Working file:/ { if (repository == "") filename = $3 } /'"$rlog_revision_pattern"'/, /^(-----------*|===========*)$/ { - if ($0 ~ /'"$rlog_revision_pattern"'/) { + line = $0 + if (line ~ /'"$rlog_revision_pattern"'/) { rev = $2 next } - if ($0 ~ /^date: [0-9][- +\/0-9:]*;/) { + if (line ~ /^date: [0-9][- +\/0-9:]*;/) { date = $2 if (date ~ /\//) { # This is a traditional RCS format date YYYY/MM/DD. @@ -544,12 +545,12 @@ $AWK <$rlogout ' rev = "?" next } - if ($0 ~ /^branches: /) { next } - if ($0 ~ /^(-----------*|===========*)$/) { print ""; next } - if ($0 == "Initial revision" || $0 ~ /^file .+ was initially added on branch .+\.$/) { - $0 = "New file." - } - printf "%s%c", $0, 1 + if (line ~ /^branches: /) { next } + if (line ~ /^(-----------*|===========*)$/) { print ""; next } + if (line == "Initial revision" || line ~ /^file .+ was initially added on branch .+\.$/) { + line = "New file." + } + printf "%s%c", line, 1 } ' | |