MangoHud/build-source.sh
Stephan Lachnit dc39dc7650
Create script to release DFSG compliant source
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2020-04-10 11:34:45 +02:00

9 lines
274 B
Bash
Executable File

#!/bin/sh
VERSION=$(git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//')
EXCLUDE_PATTERN="--exclude-vcs --exclude-vcs-ignores"
tar -cf v$VERSION.tar.gz $EXCLUDE_PATTERN .
tar -cf v$VERSION-DFSG.tar.gz $EXCLUDE_PATTERN --exclude=include/nvml.h .