summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/svnchangelog.sed
blob: 699cacce1f9013881d4271f4210d392e2f4d9fcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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