diff options
-rw-r--r-- | contrib/mtn2cl/.mtn2git_empty | 0 | ||||
-rwxr-xr-x | contrib/mtn2cl/mtn2cl.sh | 21 |
2 files changed, 21 insertions, 0 deletions
diff --git a/contrib/mtn2cl/.mtn2git_empty b/contrib/mtn2cl/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/contrib/mtn2cl/.mtn2git_empty 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` + |