incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [01/40] git commit: [#6422] Fixed format of checksum files from asf-release script
Date Wed, 30 Oct 2013 17:00:19 GMT
Updated Branches:
  refs/heads/cj/6777 d5009e190 -> ccf83fbdf (forced update)


[#6422] Fixed format of checksum files from asf-release script

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/ce4317ca
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/ce4317ca
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/ce4317ca

Branch: refs/heads/cj/6777
Commit: ce4317caaa72e33900795667227e0caee35cf1b7
Parents: ddaa661
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Tue Oct 22 21:49:51 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Tue Oct 22 21:49:51 2013 +0000

----------------------------------------------------------------------
 scripts/asf-release.sh | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/ce4317ca/scripts/asf-release.sh
----------------------------------------------------------------------
diff --git a/scripts/asf-release.sh b/scripts/asf-release.sh
index 1363b2f..7799ae4 100755
--- a/scripts/asf-release.sh
+++ b/scripts/asf-release.sh
@@ -37,7 +37,8 @@ prompt VERSION "Version" "$VERSION"
 
 RELEASE_BASE=allura-incubating-$VERSION
 RELEASE_DIR=$RELEASE_DIR_BASE/$RELEASE_BASE
-RELEASE_FILE=$RELEASE_DIR/$RELEASE_BASE.tar.gz
+RELEASE_FILENAME=$RELEASE_BASE.tar.gz
+RELEASE_FILE=$RELEASE_DIR/$RELEASE_FILENAME
 RELEASE_TAG=asf_release_$VERSION
 CLOSE_DATE=`date -d '+72 hours' +%F`
 
@@ -65,9 +66,9 @@ mkdir -p $RELEASE_DIR
 git archive -o $RELEASE_FILE --prefix $RELEASE_BASE/ $RELEASE_TAG
 
 gpg --default-key $KEY --armor --output $RELEASE_FILE.asc --detach-sig $RELEASE_FILE
-MD5_CHECKSUM=`md5sum $RELEASE_FILE` ; echo $MD5_CHECKSUM > $RELEASE_FILE.md5
-SHA1_CHECKSUM=`shasum -a1 $RELEASE_FILE` ; echo $SHA1_CHECKSUM > $RELEASE_FILE.sha1
-SHA512_CHECKSUM=`shasum -a512 $RELEASE_FILE` ; echo $SHA512_CHECKSUM > $RELEASE_FILE.sha512
+MD5_CHECKSUM=`cd $RELEASE_DIR ; md5sum $RELEASE_FILENAME` ; echo "$MD5_CHECKSUM" > $RELEASE_FILE.md5
+SHA1_CHECKSUM=`cd $RELEASE_DIR ; shasum -a1 $RELEASE_FILENAME` ; echo "$SHA1_CHECKSUM" >
$RELEASE_FILE.sha1
+SHA512_CHECKSUM=`cd $RELEASE_DIR ; shasum -a512 $RELEASE_FILENAME` ; echo "$SHA512_CHECKSUM"
> $RELEASE_FILE.sha512
 
 echo "Release is ready at: $RELEASE_DIR"
 echo "Once confirmed, push the CHANGES commit and release tag with:"


Mime
View raw message