2000-02-22 15:58:31 -05:00
|
|
|
:
|
2001-01-12 20:49:35 -05:00
|
|
|
# This utility is used to generate a compact list of changes
|
|
|
|
|
# for each release, bjm 2000-02-22
|
2000-02-22 15:58:31 -05:00
|
|
|
|
2000-05-31 21:34:02 -04:00
|
|
|
# Usage $0 file
|
2000-02-22 15:58:31 -05:00
|
|
|
|
2001-01-12 20:49:35 -05:00
|
|
|
# no branches: # cvs log -d '>1999-06-14 00:00:00 GMT' . > log
|
2000-05-31 21:34:02 -04:00
|
|
|
#
|
|
|
|
|
# pre and post-branch logs:
|
2001-01-12 20:49:35 -05:00
|
|
|
# find . -name CVS -type d -exec touch'{}/Entries.Static' \;
|
2000-05-31 21:34:02 -04:00
|
|
|
# cvs log -d'2000-05-08 00:00:00 GMT<2000-05-29 00:00:00 GMT'
|
2000-11-02 14:26:49 -05:00
|
|
|
# cvs log -d'>2000-05-29 00:00:00 GMT' -rREL7_0_PATCHES
|
2000-11-04 16:04:56 -05:00
|
|
|
# find . -name CVS -type d -exec rm '{}/Entries.Static' \;
|
2000-05-31 21:34:02 -04:00
|
|
|
#
|
2000-02-22 15:58:31 -05:00
|
|
|
|
|
|
|
|
cat "$@" |
|
|
|
|
|
|
2001-01-12 20:49:35 -05:00
|
|
|
# mark each line with a datetime and line number, for sorting and
|
|
|
|
|
# merging we don't print anything from the -- or == line and the
|
|
|
|
|
# date:
|
2000-02-22 15:58:31 -05:00
|
|
|
|
|
|
|
|
awk '
|
2000-11-04 16:04:56 -05:00
|
|
|
$0 ~ /^Working file:/ {workingfile = "/" $3}
|
2000-02-22 15:58:31 -05:00
|
|
|
|
|
|
|
|
($0 ~ /^====*$/ || $0 ~ /^----*$/) && skip == "N" \
|
|
|
|
|
{
|
|
|
|
|
/* print blank line separating entries */
|
|
|
|
|
if (datetime != "")
|
|
|
|
|
{
|
|
|
|
|
printf ("%s| %10d|%s\n", datetime, NR, "");
|
|
|
|
|
printf ("%s| %10d|%s\n", datetime, NR, "---");
|
2000-11-04 16:04:56 -05:00
|
|
|
/* printf ("%s| %10d|%s\n", datetime, NR+1, "");*/
|
2000-02-22 15:58:31 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$0 ~ /^====*$/ || $0 ~ /^----*$/ \
|
|
|
|
|
{
|
|
|
|
|
datetime="";
|
|
|
|
|
skip="N";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
datetime != "" && skip == "N" \
|
|
|
|
|
{printf ("%s| %10d| %s\n", datetime, NR, $0);}
|
|
|
|
|
|
|
|
|
|
$1 == "date:" \
|
|
|
|
|
{
|
|
|
|
|
/* get entry date */
|
|
|
|
|
datetime=$2"-"$3
|
|
|
|
|
if (workingfile != "" && skip == "N")
|
|
|
|
|
{
|
2000-11-04 16:04:56 -05:00
|
|
|
gsub(";", "", $5);
|
2001-01-12 20:49:35 -05:00
|
|
|
printf ("%s| %10d|%s\n", datetime, NR-2, workingfile);
|
|
|
|
|
printf ("%s| %10d|%s\n", datetime, NR-1, $0);
|
|
|
|
|
/* printf ("%s| %10d|%s\n", datetime, NR, "");*/
|
|
|
|
|
printf ("%s| %10d| %70s\n", datetime, NR+1, $5);
|
2000-02-22 15:58:31 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2001-01-12 20:49:35 -05:00
|
|
|
$0 ~ /^====*$/ {workingfile=""}' |
|
2000-02-22 15:58:31 -05:00
|
|
|
|
|
|
|
|
sort | cut -d'|' -f3 | cat |
|
|
|
|
|
|
|
|
|
|
# collect duplicate narratives
|
2001-01-12 20:49:35 -05:00
|
|
|
awk ' BEGIN { slot = 0; oldslot=0; save_working = ""; }
|
2000-02-22 15:58:31 -05:00
|
|
|
{
|
2001-01-12 20:49:35 -05:00
|
|
|
/* filename */
|
|
|
|
|
/* We have a filename, so we look at the previous */
|
|
|
|
|
/* narrative to see if it is new narrative text.*/
|
|
|
|
|
/* */
|
|
|
|
|
/* If there are a different number of narrative */
|
|
|
|
|
/* lines, they can not possibly be the same. */
|
2000-11-04 16:04:56 -05:00
|
|
|
if ($0 ~ /^\//)
|
2000-02-22 15:58:31 -05:00
|
|
|
{
|
|
|
|
|
if (slot != oldslot)
|
2001-01-12 20:49:35 -05:00
|
|
|
same = "N";
|
2000-02-22 15:58:31 -05:00
|
|
|
else
|
|
|
|
|
{
|
2001-01-12 20:49:35 -05:00
|
|
|
same = "Y";
|
2000-02-22 15:58:31 -05:00
|
|
|
for (i=1; i <= slot; i++)
|
|
|
|
|
{
|
|
|
|
|
if (oldnarr[i] != narr[i])
|
2001-01-12 20:49:35 -05:00
|
|
|
{
|
|
|
|
|
same = "N";
|
|
|
|
|
break;
|
|
|
|
|
}
|
2000-02-22 15:58:31 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2001-01-12 20:49:35 -05:00
|
|
|
/* dump out the old narrative if it is new */
|
|
|
|
|
if (same == "N")
|
|
|
|
|
{
|
|
|
|
|
if (oldslot)
|
|
|
|
|
for (i=1; i <= oldslot; i++)
|
|
|
|
|
print oldnarr[i];
|
|
|
|
|
/* save the current narrative */
|
|
|
|
|
for (i=1; i <= slot; i++)
|
|
|
|
|
oldnarr[i] = narr[i];
|
|
|
|
|
oldslot = slot;
|
|
|
|
|
}
|
2000-02-22 15:58:31 -05:00
|
|
|
slot = 0;
|
2001-01-12 20:49:35 -05:00
|
|
|
|
|
|
|
|
/* dump out the previous filename */
|
2000-02-22 15:58:31 -05:00
|
|
|
print save_working;
|
2001-01-12 20:49:35 -05:00
|
|
|
|
|
|
|
|
/* store the current filename for later printing */
|
2000-02-22 15:58:31 -05:00
|
|
|
save_working = $0;
|
2001-01-12 20:49:35 -05:00
|
|
|
}
|
2000-02-22 15:58:31 -05:00
|
|
|
else if ($1 != "date:")
|
2001-01-12 20:49:35 -05:00
|
|
|
{
|
|
|
|
|
/* accumulate narrative */
|
2000-02-22 15:58:31 -05:00
|
|
|
narr[++slot] = $0;
|
2001-01-12 20:49:35 -05:00
|
|
|
}
|
2000-02-22 15:58:31 -05:00
|
|
|
}
|
|
|
|
|
END {
|
2001-01-12 20:49:35 -05:00
|
|
|
/* dump out the last filename */
|
2000-02-22 15:58:31 -05:00
|
|
|
print save_working;
|
2001-01-12 20:49:35 -05:00
|
|
|
|
|
|
|
|
/* dump out the last narrative */
|
2000-02-22 15:58:31 -05:00
|
|
|
for (i=1; i <= slot; i++)
|
|
|
|
|
print narr[i];
|
|
|
|
|
}'
|