From b899cf3cd8a3d4cb92a8405c32cba67cb155250f Mon Sep 17 00:00:00 2001 From: Lars Kurth Date: Fri, 9 Oct 2015 07:16:44 -0400 Subject: [PATCH] Adapted release script to RFC on Oct 9th --- scripts/xenproject/release | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/scripts/xenproject/release b/scripts/xenproject/release index 1dbce5c..358384b 100755 --- a/scripts/xenproject/release +++ b/scripts/xenproject/release @@ -2,19 +2,27 @@ # Get contribution logs for a year # Argument builderplate -ALL=(hypervisor-only) +ALL=(hypervisor-only hypervisor) +ALLTAG=(hypervisor-only) +ALLDATE=(hypervisor) S=RELEASE-4.5.0 U=RELEASE-4.6.0 -args="-p -M $S..$U" +argsTAG="-p -M $S..$U" ext="460" dir=xenproject +cd hypervisor-only/xen +DS=`git cat-file tag $S | perl -ne 'next unless m/^tagger.* (\d+) \S+$/; print $1; exit'` +DU=`git cat-file tag $U | perl -ne 'next unless m/^tagger.* (\d+) \S+$/; print $1; exit'` +argsDATE="-p -M --since=@$DS --until=@$DU" +cd ../.. + # Actual code cd .. root=`pwd` cd $dir -echo "= Removing $ext.gitlog files =" +echo "= Removing $ext.gitlog files =" for i in "${ALL[@]}" do : @@ -23,11 +31,18 @@ done rm -f $root/output/all/$ext.gitlog echo "= Getting $ext.gitlog files =" -for i in "${ALL[@]}" +for i in "${ALLTAG[@]}" +do + : + echo "** $i" + find $i/* -maxdepth 0 -type d | xargs -i git -C {} log $argsTAG >> $root/output/$i/$ext.gitlog + cat $root/output/$i/$ext.gitlog >> $root/output/all/$ext.gitlog +done +for i in "${ALLDATE[@]}" do : echo "** $i" - find $i/* -maxdepth 0 -type d | xargs -i git -C {} log $args >> $root/output/$i/$ext.gitlog + find $i/* -maxdepth 0 -type d | xargs -i git -C {} log $argsDATE >> $root/output/$i/$ext.gitlog cat $root/output/$i/$ext.gitlog >> $root/output/all/$ext.gitlog done echo "** all" -- 2.39.5