From 210e500dc65121ee47e328938487ac633ac241de Mon Sep 17 00:00:00 2001 From: Lars Kurth Date: Thu, 8 Oct 2015 11:43:14 -0400 Subject: [PATCH] Add release script --- scripts/make-tree | 15 +++++---- scripts/make-tree~ | 18 +++++++---- scripts/xenproject/release | 47 ++++++++++++++++++++++++++++ scripts/xenproject/release~ | 61 +++++++++++++++++++++++++++++++++++++ 4 files changed, 129 insertions(+), 12 deletions(-) create mode 100755 scripts/xenproject/release create mode 100755 scripts/xenproject/release~ diff --git a/scripts/make-tree b/scripts/make-tree index 3c53393..928f50e 100755 --- a/scripts/make-tree +++ b/scripts/make-tree @@ -54,12 +54,15 @@ if [ ! -d xenproject ]; then git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git cd ../xapi curl https://api.github.com/orgs/xapi-project/repos\?per_page=200 | grep full_name | sed -e 's#.*"xapi-project/\(.*\)".*#\1#' | xargs -i git clone https://github.com/xapi-project/{} - cd .. - # IMPORTANT: do not cd into megamirage - git clone --recursive git://github.com/mirage/megamirage - cd megamirage - git submodule init - git submodule update + # cd .. + # IMPORTANT: do not cd into megamirage + # git clone --recursive git://github.com/mirage/megamirage + # cd megamirage + # git submodule init + # git submodule update + cd ../megamirage + wget -q https://raw.githubusercontent.com/mirage/mirage-www/master/TROVE -O repolist.txt + cat repolist.txt | xargs -i git clone https://github.com/{} cd ../qemu git clone git://git.qemu.org/qemu.git cd ../winpvdrivers diff --git a/scripts/make-tree~ b/scripts/make-tree~ index 715e644..ac8bbf2 100755 --- a/scripts/make-tree~ +++ b/scripts/make-tree~ @@ -47,16 +47,22 @@ if [ ! -d xenproject ]; then cd xenproject/hypervisor git clone git://xenbits.xen.org/xen.git git clone git://xenbits.xen.org/osstest.git + git clone git://xenbits.xen.org/raisin.git + git clone git://xenbits.xen.org/mini-os.git + cd ../linux git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git cd ../xapi curl https://api.github.com/orgs/xapi-project/repos\?per_page=200 | grep full_name | sed -e 's#.*"xapi-project/\(.*\)".*#\1#' | xargs -i git clone https://github.com/xapi-project/{} - cd .. - # IMPORTANT: do not cd into megamirage - git clone --recursive git://github.com/mirage/megamirage - cd megamirage - git submodule init - git submodule update + # cd .. + # IMPORTANT: do not cd into megamirage + # git clone --recursive git://github.com/mirage/megamirage + # cd megamirage + # git submodule init + # git submodule update + cd ../megamirage + wget -q https://raw.githubusercontent.com/mirage/mirage-www/master/TROVE -O repolist.txt + cd ../qemu git clone git://git.qemu.org/qemu.git cd ../winpvdrivers diff --git a/scripts/xenproject/release b/scripts/xenproject/release new file mode 100755 index 0000000..1db2bb6 --- /dev/null +++ b/scripts/xenproject/release @@ -0,0 +1,47 @@ +#!/bin/bash +# Get contribution logs for a year + +# Argument builderplate +ALL=(hypervisor) +S=RELEASE-4.5.0 +U=RELEASE-4.5.6 +args="$S..$U -p -M" +ext="460" +dir=xenproject + +# Actual code +cd .. +root=`pwd` +cd $dir + +echo "= Removing $ext.gitlog files =" +for i in "${ALL[@]}" +do + : + rm -f $root/output/$i/$ext.gitlog +done +rm -f $root/output/all/$ext.gitlog + +echo "= Getting $ext.gitlog files =" +for i in "${ALL[@]}" +do + : + echo "** $i" + find $i/* -maxdepth 0 -type d | xargs -i git -C {} log $args >> $root/output/$i/$ext.gitlog + cat $root/output/$i/$ext.gitlog >> $root/output/all/$ext.gitlog +done +echo "** all" + +echo "= Running GitDM =" +cd ../xenproject-org-gitdm +for i in "${ALL[@]}" +do + : + echo "** $i" + ./gitdm-script $root/output/$i $ext +done +echo "** all" +./gitdm-script $root/output/all $ext + +cd ../$dir + diff --git a/scripts/xenproject/release~ b/scripts/xenproject/release~ new file mode 100755 index 0000000..efe0efd --- /dev/null +++ b/scripts/xenproject/release~ @@ -0,0 +1,61 @@ +#!/bin/bash +# Get contribution logs for a specific month + +# Deal with month length and leap year +LAST=(31 28 31 30 31 30 31 31 30 31 30 31) +LEAP=(2000 2004 2008 2012 2016 2020 2024) + +for j in "${LEAP[@]}" +do + : + if [ "$1" -eq $j ]; then + LAST[1]=29 + break + fi +done +last=${LAST[$2-1]} + +# Argument builderplate +ALL=(hypervisor winpvdrivers xapi megamirage) +args="-p -M --since=$1-$2-01 --until=$1-$2-$last" +ext="$1-$2" +dir=xenproject + +# Actual code +cd .. +root=`pwd` +cd $dir + +echo "= Removing $ext.gitlog files =" +for i in "${ALL[@]}" +do + : + rm -f $root/output/$i/$ext.gitlog +done +rm -f $root/output/all/$ext.gitlog + +echo "= Getting $ext.gitlog files =" +for i in "${ALL[@]}" +do + : + echo "** $i" + find $i/* -maxdepth 0 -type d | xargs -i git -C {} log $args >> $root/output/$i/$ext.gitlog + cat $root/output/$i/$ext.gitlog >> $root/output/all/$ext.gitlog +done +echo "** all" + +echo "= Running GitDM =" +cd ../xenproject-org-gitdm +for i in "${ALL[@]}" +do + : + echo "** $i" + ./gitdm-script $root/output/$i $ext +done +echo "** all" +./gitdm-script $root/output/all $ext + +cd ../$dir + + + -- 2.39.5