diff options
author | Bruce Momjian | 2003-01-13 01:57:47 +0000 |
---|---|---|
committer | Bruce Momjian | 2003-01-13 01:57:47 +0000 |
commit | 9e66243c357b4f742cdf7e752004c00f01c5457e (patch) | |
tree | b1a1cfea99964012cc1a51eafe540947c4224b0c | |
parent | 8ac6d952cfa98f024a788bd0699dc1c0cd448af0 (diff) |
Fixes to pgcvslog for last narrive entry.
-rwxr-xr-x | src/tools/pgcvslog | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/src/tools/pgcvslog b/src/tools/pgcvslog index 6a2c8411a00..2661b2553ec 100755 --- a/src/tools/pgcvslog +++ b/src/tools/pgcvslog @@ -147,9 +147,40 @@ awk ' BEGIN { slot = 0; oldslot=0; save_working = ""; html="'"$HTML"'"} } } END { - # dump out the last filename + # If there are a different number of narrative + # lines, they can not possibly be the same. + if (slot != oldslot) + same = "N"; + else + { + same = "Y"; + for (i=1; i <= slot; i++) + { + if (oldnarr[i] != narr[i]) + { + same = "N"; + break; + } + } + } + # dump out the old narrative if it is new + if (same == "N") + { + if (oldslot) + for (i=1; i <= oldslot; i++) + { + print oldnarr[i]; + if (html == "Y" && + oldnarr[i] != "<HR>" && + oldnarr[i] !~ "^<DIV ") + print "<BR>"; + } + } + + # dump out the last filename print save_working; + if (html == "Y") print "<BR>"; @@ -158,8 +189,8 @@ awk ' BEGIN { slot = 0; oldslot=0; save_working = ""; html="'"$HTML"'"} { print narr[i]; if (html == "Y" && - oldnarr[i] != "<HR>" && - oldnarr[i] !~ "^<DIV ") + narr[i] != "<HR>" && + narr[i] !~ "^<DIV ") print "<BR>"; } }' | |