summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2007-06-16 18:07:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2007-06-16 18:07:37 +0000
commit595bfc663fd746353f9214b16a041a5bc75a7ff2 (patch)
tree6b30c7cfea84e7433020f43eed2be9c32eec4e5a
parent6bf558d5065297cb8e4c0b11b7aa39779e89253b (diff)
parentffbe139cc96fd1f387d259ee825bf48d7be8b137 (diff)
merge of '3b51ced2ab6352c3aa1358c560ebf030e37a0f3b'
and 'b9511657e9fa0254ec10af333b56841e7c0f6cc0'
-rwxr-xr-xcontrib/mtn2cl/mtn2cl.sh21
1 files changed, 12 insertions, 9 deletions
diff --git a/contrib/mtn2cl/mtn2cl.sh b/contrib/mtn2cl/mtn2cl.sh
index 631303b55b..cba9d5cdb8 100755
--- a/contrib/mtn2cl/mtn2cl.sh
+++ b/contrib/mtn2cl/mtn2cl.sh
@@ -2,6 +2,8 @@
# This script takes the last 1000 revs and writes a ChangeLog
+mkdir logs
+
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 \
@@ -9,22 +11,23 @@ for i in `mtn log --brief --no-graph --no-merges --from l:"1 week ago" --to ${RE
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}
+ echo " ${CL}" >> logs/${AUTHOR}
fi
done
-for i in *@* ; do \
- echo $i: >> ChangeLog
- cat $i >> ChangeLog
- echo >> ChangeLog
+cd logs
+for i in * ; do \
+ echo $i: >> ../ChangeLog
+ cat $i >> ../ChangeLog
+ echo >> ../ChangeLog
done
+cd ..
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
+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 logs/bugs.csv >& /dev/null
+cat logs/bugs.csv | awk -F, '{print $1 " " $7 "\t " $8}' | sed s:\"::g >> ChangeLog
-rm `ls | grep -v ChangeLog | grep -v mtn2cl`
+rm -Rf logs