From: Chris Wright Date: Mon, 10 Oct 2005 20:53:52 +0000 (-0700) Subject: Update release script. Needs new git to use git-tag -u, and needs X-Git-Tag: v2.6.14.1~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cfb5410e3da5237bbfe14b17d8e79c6704191b7f;p=thirdparty%2Fkernel%2Fstable-queue.git Update release script. Needs new git to use git-tag -u, and needs an env. var GIT_GPG_KEY to use with -u. --- diff --git a/scripts/dorelease b/scripts/dorelease index 3956829492e..ac5dc81d9b2 100755 --- a/scripts/dorelease +++ b/scripts/dorelease @@ -7,6 +7,14 @@ if [ $# -ne 1 ]; then exit 1 fi +if [ -z "${GIT_GPG_KEY}" ]; then + echo -e "Error:\tMust set GIT_GPG_KEY env variable" + exit 1 +fi + +git-tag -u "${GIT_GPG_KEY}" -m "this is a TEST" vTest +exit 0 + RELEASE=$1 REL_ARRAY=(${RELEASE//./ }) BASE=${REL_ARRAY[0]}.${REL_ARRAY[1]}.${REL_ARRAY[2]} @@ -29,7 +37,7 @@ quilt series | while read PATCH do cat $PATCH >> $RELDIR/apply.mbox done -dotest $RELDIR/apply.mbox +git-applymbox $RELDIR/apply.mbox rm $RELDIR/apply.mbox # update EXTRAVERSION @@ -50,7 +58,7 @@ RELEASE_COMMIT=$(echo "Linux $RELEASE" | git-commit-tree $(git-write-tree) -p HE echo $RELEASE_COMMIT > .git/HEAD # tag it -git-tag-script -s -m "This is the $RELEASE stable release" v$RELEASE +git-tag-script -u ${GIT_GPG_KEY} -m "This is the $RELEASE stable release" v$RELEASE BASE_COMMIT="$(git-cat-file tag $(cat .git/refs/tags/v${BASE}) | grep object | cut -d" " -f2)" LAST_COMMIT="$(git-cat-file tag $(cat .git/refs/tags/v${LAST_REL}) | grep object | cut -d" " -f2)"