]> xenbits.xensource.com Git - people/larsk/commit-log-scripts.git/commitdiff
Add release script
authorLars Kurth <lars.kurth@xenproject.org>
Thu, 8 Oct 2015 15:43:14 +0000 (11:43 -0400)
committerLars Kurth <lars.kurth@xenproject.org>
Thu, 8 Oct 2015 15:43:14 +0000 (11:43 -0400)
scripts/make-tree
scripts/make-tree~
scripts/xenproject/release [new file with mode: 0755]
scripts/xenproject/release~ [new file with mode: 0755]

index 3c5339377546f2b1745e54baeaca6570d57e25f8..928f50e176d96b3ca20abbac57eb08fbd5f25f21 100755 (executable)
@@ -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
index 715e64472c08682cdd3e7438bc045ee4c0aedfe0..ac8bbf2c1499ea37b46a7dcbe51d48097023869c 100755 (executable)
@@ -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 (executable)
index 0000000..1db2bb6
--- /dev/null
@@ -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 (executable)
index 0000000..efe0efd
--- /dev/null
@@ -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
+
+
+