mirror of
https://github.com/flightlessmango/MangoHud.git
synced 2024-10-31 15:20:13 +00:00
aa4cb1a4a0
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
18 lines
585 B
Bash
Executable File
18 lines
585 B
Bash
Executable File
#!/bin/sh
|
|
|
|
VERSION=$(git describe --tags --dirty)
|
|
NAME=MangoHud-$VERSION-Source
|
|
|
|
# ensure that submodules are present
|
|
git submodule update --init
|
|
# get everything except submodules
|
|
git archive HEAD --format=tar --prefix=${NAME}/ --output=${NAME}.tar
|
|
# add imgui submodule
|
|
tar -rf ${NAME}.tar --exclude-vcs --transform="s,^modules/ImGui/src,${NAME}/modules/ImGui/src," modules/ImGui/src
|
|
# 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
|