From 13a3cc471567f24c60ce4c761ba67dc9fab2faa6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 28 May 2006 22:23:51 +0000 Subject: put log messages first, from werner git-svn-id: svn://tug.org/texlive/trunk@1609 c570f23f-e606-0410-a88d-b1316a301751 --- Build/tools/svnchangelog | 5 +++-- Build/tools/svnchangelog.sed | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100755 Build/tools/svnchangelog.sed 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 -- cgit v1.2.3