2020-04-10 09:34:45 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-06-12 09:57:59 +00:00
|
|
|
VERSION=$(git describe --tags --dirty)
|
|
|
|
NAME=MangoHud-$VERSION-Source
|
2020-04-10 09:34:45 +00:00
|
|
|
|
2020-05-04 10:16:09 +00:00
|
|
|
# create archive via git
|
2020-06-12 09:57:59 +00:00
|
|
|
git archive HEAD --format=tar --prefix=${NAME}/ --output=${NAME}.tar
|
2020-09-28 20:30:00 +00:00
|
|
|
# remove unused minihook from source tarball
|
|
|
|
tar -f ${NAME}.tar --delete ${NAME}/modules
|
2020-06-12 09:57:59 +00:00
|
|
|
# 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
|