aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/mtn2cl
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-08-03 17:20:26 +0000
committerKoen Kooi <koen@openembedded.org>2007-08-03 17:20:26 +0000
commit03a50538c121e8a675730eb8f258976a2ed5d553 (patch)
tree9f5fea6a8db1fa46b9166565417ae23845a90d15 /contrib/mtn2cl
parentb18abe6da7888a670588b90cbd0a7c71f3aeb9a4 (diff)
downloadopenembedded-03a50538c121e8a675730eb8f258976a2ed5d553.tar.gz
openembedded-03a50538c121e8a675730eb8f258976a2ed5d553.tar.bz2
openembedded-03a50538c121e8a675730eb8f258976a2ed5d553.zip
contrib/mtn2cl: saves last used revision to get all changes since last changelog
* remove the file called 'oldrev' to disable this behaviour * bugzilla report are still 'last week'
Diffstat (limited to 'contrib/mtn2cl')
-rwxr-xr-xcontrib/mtn2cl/mtn2cl.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/mtn2cl/mtn2cl.sh b/contrib/mtn2cl/mtn2cl.sh
index f404def82d..416d393ccd 100755
--- a/contrib/mtn2cl/mtn2cl.sh
+++ b/contrib/mtn2cl/mtn2cl.sh
@@ -5,7 +5,13 @@ mkdir logs
export LOGNAME=Changelog.`date -u "+%Y%m%d"`
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 \
+if test -e oldrev ; then
+ export OLD_REV=`cat oldrev`
+else
+ export OLD_REV="l:\"1 week ago\""
+fi
+
+for i in `mtn log --brief --no-graph --no-merges --to ${OLD_REV} --from ${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 }'`
@@ -37,5 +43,7 @@ cat logs/new-bugs.csv | awk -F, '{print $1 " " $7 "\t " $8}' | sed s:\"::g >> ${
echo -e "\nIn total $NEW_BUGS bugs have been created and $RESOLVED_BUGS bugs were closed." >> ${LOGNAME}
+echo ${REV_NOW} > oldrev
+
rm -Rf logs