sfizz/.travis/prepare_tarball.sh

15 lines
286 B
Bash
Raw Normal View History

#!/bin/bash
set -ex
2020-03-10 20:08:38 +01:00
2019-12-23 05:13:29 -08:00
cd build
2020-12-08 05:43:32 +01:00
make DESTDIR=${PWD}/${INSTALL_DIR} install
2019-12-23 05:13:29 -08:00
tar -zcvf "${INSTALL_DIR}.tar.gz" ${INSTALL_DIR}
2020-04-18 06:30:44 +02:00
# Only release a tarball if there is a tag
2020-10-27 04:12:54 +01:00
if [[ ${TRAVIS_TAG} != "" ]] && [[ ${DEPLOY_BUILD} ]]; then
2020-04-18 06:30:44 +02:00
mv "${INSTALL_DIR}.tar.gz" ${TRAVIS_BUILD_DIR}
fi
2019-12-23 05:13:29 -08:00
cd ..