10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-12-23 12:56:14 +01:00
quantum_package/install/scripts/build.sh

15 lines
462 B
Bash
Raw Normal View History

2015-06-05 22:33:19 +02:00
#!/bin/bash -x
# This script should be included
BUILD=_build/${TARGET}
rm -rf -- ${BUILD}
mkdir ${BUILD} || exit 1
2016-12-02 11:53:56 +01:00
if [[ -f Downloads/${TARGET}.tar.gz ]] ; then
tar -zxf Downloads/${TARGET}.tar.gz --strip-components=1 --directory=${BUILD} || exit 1
elif [[ -f Downloads/${TARGET}.tar.bz2 ]] ; then
tar -jxf Downloads/${TARGET}.tar.bz2 --strip-components=1 --directory=${BUILD} || exit 1
fi
2015-11-25 18:55:06 +01:00
_install || exit 1
2015-06-05 22:33:19 +02:00
rm -rf -- ${BUILD} _build/${TARGET}.log
2015-11-25 18:39:49 +01:00
exit 0