summaryrefslogtreecommitdiff
path: root/Master/tlpkg
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg')
-rwxr-xr-xMaster/tlpkg/libexec/svnchangelog.sed43
1 files changed, 43 insertions, 0 deletions
diff --git a/Master/tlpkg/libexec/svnchangelog.sed b/Master/tlpkg/libexec/svnchangelog.sed
new file mode 100755
index 00000000000..699cacce1f9
--- /dev/null
+++ b/Master/tlpkg/libexec/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