From aa29e819902961d1d973883b1d627a0fa3ad596a Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 1 Jun 2007 09:58:16 +0000 Subject: contrib/mtn2cl: add quick & dirty script to generate a changelog --- contrib/mtn2cl/mtn2cl.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 contrib/mtn2cl/mtn2cl.sh (limited to 'contrib/mtn2cl/mtn2cl.sh') diff --git a/contrib/mtn2cl/mtn2cl.sh b/contrib/mtn2cl/mtn2cl.sh new file mode 100755 index 0000000000..09d6201bd3 --- /dev/null +++ b/contrib/mtn2cl/mtn2cl.sh @@ -0,0 +1,21 @@ +#/bin/sh + +# This script takes the last 1000 revs and writes a ChangeLog + +for i in `mtn log --brief --no-graph --no-merges --to 57d2b2fc5c8e07d46b3aff668037c245742efd52 | 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` + -- cgit v1.2.3