sfizz/.travis/prepare_tarball.sh
Jean Pierre Cimalando 872cebd74a Remove old travis jobs
2020-12-08 05:44:13 +01:00

14 lines
286 B
Bash
Executable file

#!/bin/bash
set -ex
cd build
make DESTDIR=${PWD}/${INSTALL_DIR} install
tar -zcvf "${INSTALL_DIR}.tar.gz" ${INSTALL_DIR}
# Only release a tarball if there is a tag
if [[ ${TRAVIS_TAG} != "" ]] && [[ ${DEPLOY_BUILD} ]]; then
mv "${INSTALL_DIR}.tar.gz" ${TRAVIS_BUILD_DIR}
fi
cd ..