From 8f5a22d56ea0c97e50521aa981914828e12e16d5 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Mon, 27 Feb 2017 12:34:13 -0700 Subject: [PATCH] autopackage: do not copy tarball to build output The tarball can be recreated with 'git archive'; it is not useful to keep it as part of the build output. Change-Id: I585aaaac765d9a52e444bcd878d3826bb7b96a45 Signed-off-by: Daniel Verkamp --- autopackage.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/autopackage.sh b/autopackage.sh index 7ca2aabab..e9017b1db 100755 --- a/autopackage.sh +++ b/autopackage.sh @@ -26,14 +26,11 @@ find . -iname "spdk-*.tar.gz" -delete git archive HEAD -9 --prefix=${pv}/ -o ${pv}.tar.gz tarball=$(ls -1 spdk-*.tar.gz) -if [ $PWD != $out ]; then - mv $tarball $out/ -fi # Build from packaged source tmpdir=$(mktemp -d) echo "tmpdir=$tmpdir" -tar -C "$tmpdir" -xf $out/$tarball +tar -C "$tmpdir" -xf $tarball ( cd "$tmpdir"/spdk-* time $MAKE ${MAKEFLAGS} DPDK_DIR=$DPDK_DIR CONFIG_DEBUG=n CONFIG_WERROR=y