MangoHud/build-source.sh
Stephan Lachnit 3a73d8cb30 build-source.sh: ensure that working tree is clean
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2020-05-04 13:30:06 +03:00

11 lines
305 B
Bash
Executable File

#!/bin/sh
VERSION=$(git describe --tags --dirty=+)
FILE_PATTERN="--exclude-vcs --exclude-vcs-ignores ."
# default version
tar -czf MangoHud-$VERSION-Source.tar.gz $FILE_PATTERN
# DFSG compliant version, excludes NVML
tar -czf MangoHud-$VERSION-Source-DFSG.tar.gz --exclude=include/nvml.h $FILE_PATTERN