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
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
--- /dev/null
+#!/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
+
--- /dev/null
+#!/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
+
+
+