simplify archive creation

Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
This commit is contained in:
Stephan Lachnit
2020-05-20 18:05:37 +02:00
parent 9f676632c3
commit e6355d91f4
2 changed files with 8 additions and 317 deletions

View File

@ -4,14 +4,18 @@ set -e
# Simple script to construct a redistributable and complete tarball of the
# gamemode tree, including the subprojects, so that it can be trivially
# packaged by distributions banning networking during build.
meson subprojects download
meson subprojects update
# Bump in tandem with meson.build, run script once new tag is up.
VERSION="1.6-dev"
NAME="gamemode"
./scripts/git-archive-all.sh --format tar --prefix ${NAME}-${VERSION}/ --verbose -t HEAD ${NAME}-${VERSION}.tar
# get code in this repo
git archive HEAD --format=tar --prefix=${NAME}-${VERSION}/ --output=${NAME}-${VERSION}.tar
# get code from subprojects
meson subprojects download
meson subprojects update
tar -rf ${NAME}-${VERSION}.tar --exclude-vcs --transform="s,^subprojects,${NAME}-$VERSION/subprojects," subprojects/inih/
# compress archive
xz -9 "${NAME}-${VERSION}.tar"
# Automatically sign the tarball with GPG key of user running this script