blob: 578a06145a110f2f26079138a516a1278d0f6446 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#/bin/sh
# This script takes the last 1000 revs and writes a ChangeLog
for i in `mtn log --brief --no-graph --no-merges --last 1000 | awk '{print $2 ":" $1}'` ; do \
export REV=`echo $i | awk -F: '{print $2}'`
export AUTHOR=`echo $i | awk -F: '{print $1}'`
export CL=`mtn ls certs ${REV} | grep -A 1 changelog | grep -v changelog | gawk -F'Value : ' '{ print $2 }'`
if test -n "${CL}" ; then
echo " ${CL}" >> ${AUTHOR}
fi
done
for i in *@* ; do \
echo $i: >> ChangeLog
cat $i >> ChangeLog
echo >> ChangeLog
done
rm `ls | grep -v ChangeLog | grep -v mtn2cl`
|