summaryrefslogtreecommitdiff
path: root/contrib/mtn2cl/mtn2cl.sh
diff options
context:
space:
mode:
authorFlorian Boor <florian.boor@kernelconcepts.de>2007-06-12 14:45:27 +0000
committerFlorian Boor <florian.boor@kernelconcepts.de>2007-06-12 14:45:27 +0000
commitb1f4d34f8541f039d72d423223c91e32540a2fc5 (patch)
treec50f34a595a58cb31a25d96727c3e2c9c27c0a91 /contrib/mtn2cl/mtn2cl.sh
parent10013e9ed4e79a2f6ca0ceb6451787aaa47c46e5 (diff)
parentb655c71aac44af6eab2a52774ea810a945592cee (diff)
merge of '30c320b2f51c86226580e5bbf68fa8b0896a0655'
and '8dfee9b2427785432e4161eb7cc749155230e08e'
Diffstat (limited to 'contrib/mtn2cl/mtn2cl.sh')
-rwxr-xr-xcontrib/mtn2cl/mtn2cl.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/mtn2cl/mtn2cl.sh b/contrib/mtn2cl/mtn2cl.sh
new file mode 100755
index 0000000000..631303b55b
--- /dev/null
+++ b/contrib/mtn2cl/mtn2cl.sh
@@ -0,0 +1,30 @@
+#/bin/sh
+
+# This script takes the last 1000 revs and writes a ChangeLog
+
+export REV_NOW=`mtn automate heads |head -n1`
+
+for i in `mtn log --brief --no-graph --no-merges --from l:"1 week ago" --to ${REV_NOW}| 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
+
+echo "Bug fixed:" >> ChangeLog
+
+wget 'http://bugs.openembedded.org/buglist.cgi?bug_file_loc=&bug_file_loc_type=allwordssubstr&bug_id=&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&bugidtype=include&chfieldfrom=7d&chfieldto=Now&chfieldvalue=&email1=&email2=&emailassigned_to1=1&emailassigned_to2=1&emailcc2=1&emailqa_contact2=1&emailreporter2=1&emailtype1=substring&emailtype2=substring&field-1-0-0=bug_status&field0-0-0=noop&known_name=1WFixed&long_desc=&long_desc_type=substring&query_format=advanced&remaction=&short_desc=&short_desc_type=allwordssubstr&type-1-0-0=anyexact&type0-0-0=noop&value-1-0-0=RESOLVED%2CVERIFIED%2CCLOSED&value0-0-0=&ctype=csv' -O bugs.csv >& /dev/null
+
+cat bugs.csv | awk -F, '{print $1 " " $7 "\t " $8}' | sed s:\"::g >> ChangeLog
+
+
+rm `ls | grep -v ChangeLog | grep -v mtn2cl`
+