aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHÃ¥kon Hallingstad <hakon@verizonmedia.com>2021-11-25 13:18:59 +0100
committerGitHub <noreply@github.com>2021-11-25 13:18:59 +0100
commit8efdf6eebf3ec7d350d26c0ec2db6dab8a8f2794 (patch)
treea0211309b3306fca9b160fa21f47000857ab9320
parentd3c02dc31aafdb34a6a7203b2b4dab48ff4459fa (diff)
parentbdbe4506a8b4067fb8cd59e250a50b4b79fcf91f (diff)
Merge pull request #20206 from vespa-engine/toregge/use-git-archive-for-dist-sh
Use git archive to create vespa source tar file.
-rwxr-xr-xdist.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist.sh b/dist.sh
index 6016599d03f..12b71ee507c 100755
--- a/dist.sh
+++ b/dist.sh
@@ -9,7 +9,7 @@ fi
VERSION="$1"
mkdir -p ~/rpmbuild/{SOURCES,SPECS}
-GZIP=-1 tar -zcf ~/rpmbuild/SOURCES/vespa-$VERSION.tar.gz --exclude target --exclude cmake-build-debug --transform "flags=r;s,^,vespa-$VERSION/," *
+git archive --format=tar.gz --prefix=vespa-$VERSION/ -o ~/rpmbuild/SOURCES/vespa-$VERSION.tar.gz HEAD
DIST_FILE="dist/vespa.spec"
# When checking out relase tags, the vespa.spec is in the source root folder. This is a workaround to be able to build rpms from a release tag.