10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-06-19 19:52:15 +02:00
quantum_package/install/scripts/build.sh

16 lines
322 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
tar -zxf Downloads/${TARGET}.tar.gz --strip-components=1 --directory=${BUILD} || exit 1
2015-11-25 18:39:49 +01:00
_install
if [[ $? -ne 0 ]]
then
cat _build/${TARGET}.log
exit 1
fi
2015-06-05 22:33:19 +02:00
rm -rf -- ${BUILD} _build/${TARGET}.log
2015-11-25 18:39:49 +01:00
exit 0