From 0e8ca31341fe3e9e24cc850be431a4f1c7f0df98 Mon Sep 17 00:00:00 2001 From: Fathi Boudra Date: Fri, 18 Jan 2013 09:36:54 +0200 Subject: For some reasons, --prepend-path doesn't work for me. Set PATH env var to debuild. --- scripts/package_kernel | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/package_kernel b/scripts/package_kernel index bddc467..b847c10 100755 --- a/scripts/package_kernel +++ b/scripts/package_kernel @@ -6,7 +6,9 @@ shopt -s extglob # add directory containing this script to PATH # +export DEFAULT_PATH="/usr/sbin:/usr/bin:/sbin:/bin" export CIROOTDIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" +export TCBINDIR="$HOME/tc/bin" export PATH="$CIROOTDIR/scripts:$CIROOTDIR/configs:$PATH" # exit with error message and bad exit status @@ -405,7 +407,7 @@ test_build_source_pkg() do sed -i -e 's/do_tools.*=.*/do_tools = false/' $mk done - time debuild --prepend-path=$HOME/tc/bin --no-lintian -us -uc -b -a$DEBARCH -j`getconf _NPROCESSORS_ONLN` + time debuild --set-envvar=PATH="$TCBINDIR:$DEFAULT_PATH" --prepend-path=$TCBINDIR --no-lintian -us -uc -b -a$DEBARCH -j`getconf _NPROCESSORS_ONLN` cd .. ln *.deb *.changes ../../out cd .. -- cgit v1.2.3