summaryrefslogtreecommitdiff
path: root/contrib/mtn2cl/mtn2cl.sh
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-06-01 09:58:16 +0000
committerKoen Kooi <koen@openembedded.org>2007-06-01 09:58:16 +0000
commitaa29e819902961d1d973883b1d627a0fa3ad596a (patch)
treeba8ca0eb348d31467599daf0cafa4fa6967095fa /contrib/mtn2cl/mtn2cl.sh
parent9b6d9e3e09a4eaadd082f30b8bca4f74aad7f82e (diff)
contrib/mtn2cl: add quick & dirty script to generate a changelog
Diffstat (limited to 'contrib/mtn2cl/mtn2cl.sh')
-rwxr-xr-xcontrib/mtn2cl/mtn2cl.sh21
1 files changed, 21 insertions, 0 deletions
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`
+