MangoHud/build-source.sh
Stephan Lachnit acf2d88fbc Import Dear ImGui files as subproject
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2020-07-09 00:55:10 +03:00

14 lines
374 B
Bash
Executable File

#!/bin/sh
VERSION=$(git describe --tags --dirty)
NAME=MangoHud-$VERSION-Source
# create archive via git
git archive HEAD --format=tar --prefix=${NAME}/ --output=${NAME}.tar
# create DFSG compliant version which excludes NVML
cp ${NAME}.tar ${NAME}-DFSG.tar
tar -f ${NAME}-DFSG.tar --delete ${NAME}/include/nvml.h
# compress archives
gzip ${NAME}.tar
gzip ${NAME}-DFSG.tar