sfizz/.travis/prepare_tarball.sh
2020-03-08 23:57:33 +01:00

15 lines
303 B
Bash
Executable file

#!/bin/bash
set -ex
. .travis/mingw_container.sh
# Do not prepare a tarball without a tag
if [[ ${TRAVIS_TAG} == "" ]]; then
exit 0
fi
cd build
buildenv make DESTDIR=${PWD}/${INSTALL_DIR} install
tar -zcvf "${INSTALL_DIR}.tar.gz" ${INSTALL_DIR}
mv "${INSTALL_DIR}.tar.gz" ${TRAVIS_BUILD_DIR}
cd ..