sfizz/.travis/prepare_tarball.sh
Jean Pierre Cimalando 5e6fdb58fa Bundle the dylibs
2020-04-18 07:06:28 +02:00

20 lines
370 B
Bash
Executable file

#!/bin/bash
set -ex
if ! [ -z "$CONTAINER" ]; then
. .travis/docker_container.sh
else
. .travis/no_container.sh
fi
cd build
buildenv 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} != "" ]]; then
mv "${INSTALL_DIR}.tar.gz" ${TRAVIS_BUILD_DIR}
fi
cd ..