From: Marek VavruĊĦa Date: Thu, 12 Feb 2015 08:55:14 +0000 (+0100) Subject: build: trap ERR X-Git-Tag: v1.0.0-beta1~308 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=27878393bdf8dcb52d1ebb14b4d8033895ccfcec;p=thirdparty%2Fknot-resolver.git build: trap ERR --- diff --git a/scripts/bootstrap-depends.sh b/scripts/bootstrap-depends.sh index 2695e4e4c..55d0fc692 100755 --- a/scripts/bootstrap-depends.sh +++ b/scripts/bootstrap-depends.sh @@ -25,12 +25,13 @@ export PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig" export BUILD_DIR="$(pwd)/.build-depend" export LOG=$(pwd)/build.log [ ! -e ${BUILD_DIR} ] && mkdir ${BUILD_DIR}; cd ${BUILD_DIR} -echo "building in ${BUILD_DIR} log ${LOG}" | tee ${LOG} +echo "build: ${BUILD_DIR}" +echo "log: ${LOG}" | tee ${LOG} function on_failure { cat ${LOG} } -trap on_failure EXIT +trap on_failure ERR function fetch_pkg { if [ "${2##*.}" == git ]; then