blob: 1d9c6f0b8dc4f9693702fa48cc7d0d269390d5e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
#
# This scripts converts output of mtn log --no-graph --no-files into format
# suitable for BACKPORTS.txt
#
/usr/bin/awk '
/^Revi/ { rev = $2 }
/^$/ {on=1; next}
/^----/ {on=0; next;}
on == 1 {print rev " " $0 " (<approved by>)"; on=0; next}' $1 | tac
|