mirror of
https://github.com/flightlessmango/MangoHud.git
synced 2024-11-18 03:25:40 +00:00
ade319fe87
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
16 lines
463 B
Bash
Executable File
16 lines
463 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
|
|
# remove unused minihook from source tarball
|
|
tar -f ${NAME}.tar --delete ${NAME}/modules
|
|
# 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
|