[packages/crossnacl-binutils] - mention shorthash of existing tarball

draenog draenog at pld-linux.org
Sat Jul 7 11:14:02 CEST 2012


commit 00c2a7535fa603e769be778d4fa3a2048651fc55
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Fri Jul 6 22:06:03 2012 +0000

    - mention shorthash of existing tarball
    
    Changed files:
        get-source.sh -> 1.5

 get-source.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/get-source.sh b/get-source.sh
index d4ccd3f..fa72d4a 100644
--- a/get-source.sh
+++ b/get-source.sh
@@ -49,11 +49,11 @@ fi
 githash=$NACL_BINUTILS_COMMIT
 git show $githash:bfd/configure.in > configure.in
 version=$(awk '/AM_INIT_AUTOMAKE/{v=$NF; sub(/\)/, "",v);print v}' configure.in)
-shorthash=git$(git rev-parse --short $githash)
-prefix=$package-$version-$shorthash
+shorthash=$(git rev-parse --short $githash)
+prefix=$package-$version-git$shorthash
 
 if [ -f $prefix.tar.bz2 ]; then
-	echo "Tarball $prefix.tar.bz2 already exists"
+	echo "Tarball $prefix.tar.bz2 already exists at $shorthash"
 	exit 0
 fi
 


More information about the test mailing list