From 07585dfebd96cb02bcac3ebb49d23a1c7a4940fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 1 Jan 2013 20:50:22 +0200 Subject: [PATCH] - use git archive to xz --- get-source.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/get-source.sh b/get-source.sh index 6cee0ae..0910a96 100755 --- a/get-source.sh +++ b/get-source.sh @@ -59,14 +59,14 @@ git show $githash:newlib/libm/configure > configure version=$(awk -F"'" '/PACKAGE_VERSION=/{print $2}' configure) shorthash=$(git rev-parse --short $githash) prefix=$package-$version-git$shorthash +archive=$prefix.tar.xz -if [ -f $prefix.tar.xz ]; then - echo "Tarball $prefix.tar.xz already exists at $shorthash" +if [ -f $archive ]; then + echo "Tarball $archive already exists at $shorthash" else - git archive $githash --prefix $prefix/ > $prefix.tar - xz -9 $prefix.tar + git -c tar.tar.xz.command="xz -9c" archive $githash --prefix $prefix/ -o $archive - ../dropin $prefix.tar.xz + ../dropin $archive fi # We need to copy some missing header files from chromium @@ -78,6 +78,7 @@ fi package=nacl-headers prefix=$package-$chrome_version + if [ -f $prefix.tar.xz ]; then echo "Tarball $prefix.tar.xz already exists" else -- 2.44.0