diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2013-01-18 09:36:54 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2013-01-18 09:36:54 +0200 |
commit | 0e8ca31341fe3e9e24cc850be431a4f1c7f0df98 (patch) | |
tree | 8453b30974b28b6d68f6230ed48834ff4a029fd5 | |
parent | e92dff42690c17d71722d33b7b63e648492282fe (diff) |
For some reasons, --prepend-path doesn't work for me. Set PATH env var to
debuild.
-rwxr-xr-x | scripts/package_kernel | 4 |
1 files changed, 3 insertions, 1 deletions
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 .. |