X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/d74a9f24b3c852e47e5ab0b6e862a1544fda2ef7..793faff195b21d0cefc2d9e89b609d195add7af0:/lib-src/rcs2log diff --git a/lib-src/rcs2log b/lib-src/rcs2log index d6abdeb0d0..099d4a3602 100755 --- a/lib-src/rcs2log +++ b/lib-src/rcs2log @@ -28,7 +28,7 @@ Options: Report bugs to .' -Id='$Id: rcs2log,v 1.39 1997/05/11 18:43:55 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. @@ -281,7 +281,9 @@ case $# in case $file in RCS/. | RCS/.. | RCS/,*, | RCS/*_) continue;; RCS/.rcsfreeze.log | RCS/.rcsfreeze.ver) continue;; - RCS/.\* | RCS/\* | .\*,v | \*,v) test -f "$file" || continue + RCS/.\* | RCS/\* | .\*,v | \*,v) test -f "$file" || continue;; + RCS/*,v | RCS/.*,v) ;; + RCS/* | RCS/.*) test -f "$file" || continue esac case $files in '') files=$file;; @@ -520,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. @@ -542,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 } ' |