diff options
author | Tor Egge <Tor.Egge@online.no> | 2021-11-25 10:17:22 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2021-11-25 10:17:22 +0100 |
commit | bdbe4506a8b4067fb8cd59e250a50b4b79fcf91f (patch) | |
tree | bcfdd37d8a0d039a96b2a45af629725bf37cf1f9 /dist.sh | |
parent | 667668da4c8808f001a9e09a0dfdc89d1fee1193 (diff) |
Use git archive to create vespa source tar file.
Diffstat (limited to 'dist.sh')
-rwxr-xr-x | dist.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |