diff options
author | Karl Berry <karl@freefriends.org> | 2006-05-28 22:23:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-05-28 22:23:51 +0000 |
commit | 13a3cc471567f24c60ce4c761ba67dc9fab2faa6 (patch) | |
tree | 2f833a880c9751e9053b9b1a2ee5542660bfdc04 | |
parent | 03a07859bed88f2aebc055dd7796060bca9f1b3a (diff) |
put log messages first, from werner
git-svn-id: svn://tug.org/texlive/trunk@1609 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Build/tools/svnchangelog | 5 | ||||
-rwxr-xr-x | Build/tools/svnchangelog.sed | 43 |
2 files changed, 46 insertions, 2 deletions
diff --git a/Build/tools/svnchangelog b/Build/tools/svnchangelog index f74a33281ee..44b9bf7845f 100755 --- a/Build/tools/svnchangelog +++ b/Build/tools/svnchangelog @@ -65,8 +65,9 @@ if ! $chicken && $rotate; then cp /dev/null $outfile fi -# prepend new changes to current log. -cat $newlogs $outfile >$outfile.new +# prepend new changes to current log, and put log messages first. +$mydir/svnchangelog.sed $newlogs >$outfile.new +cat $outfile >>$outfile.new if $debug; then # really debug # show first and last change number in each file. diff --git a/Build/tools/svnchangelog.sed b/Build/tools/svnchangelog.sed new file mode 100755 index 00000000000..699cacce1f9 --- /dev/null +++ b/Build/tools/svnchangelog.sed @@ -0,0 +1,43 @@ +#! /bin/sed -nf +# $Id$ +# Written by Werner Lemberg, 25may06. Public domain. +# svn log outputs the paths first, then the log message. This sed +# script reverses that. + +:main +/------------------------------------------------------------------------/ { + p + n + /r[0-9][0-9]* / { + p + n + /^Changed paths:$/ { + h + n + + :loop1 + /^$/! { + H + n + bloop1 + } + + :loop2 + /------------------------------------------------------------------------/! { + p + n + bloop2 + } + + i\ + + x + p + g + bmain + } + } + bmain +} + +p |