sfizz/.travis/prepare_tarball.sh

16 lines
303 B
Bash
Raw Normal View History

#!/bin/bash
set -ex
2020-03-08 22:47:26 +01:00
. .travis/mingw_container.sh
# Do not prepare a tarball without a tag
if [[ ${TRAVIS_TAG} == "" ]]; then
exit 0
fi
2019-12-23 05:13:29 -08:00
cd build
buildenv make DESTDIR=${PWD}/${INSTALL_DIR} install
2019-12-23 05:13:29 -08:00
tar -zcvf "${INSTALL_DIR}.tar.gz" ${INSTALL_DIR}
mv "${INSTALL_DIR}.tar.gz" ${TRAVIS_BUILD_DIR}
cd ..