From: Thomas Monjalon Date: Mon, 14 Mar 2016 20:55:13 +0000 (+0100) Subject: scripts: fix run in any directory X-Git-Tag: spdx-start~7041 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=af6bc978ad9441d830037c160b4e6082b3e4b989;p=dpdk.git scripts: fix run in any directory The path to load-devel-config.sh must be relative to the script. Signed-off-by: Thomas Monjalon --- diff --git a/scripts/checkpatches.sh b/scripts/checkpatches.sh index fcb24fd5fb..5c58a2028a 100755 --- a/scripts/checkpatches.sh +++ b/scripts/checkpatches.sh @@ -33,7 +33,7 @@ # Load config options: # - DPDK_CHECKPATCH_PATH # - DPDK_CHECKPATCH_LINE_LENGTH -. scripts/load-devel-config.sh +. $(dirname $(readlink -e $0))/load-devel-config.sh length=${DPDK_CHECKPATCH_LINE_LENGTH:-80} diff --git a/scripts/test-build.sh b/scripts/test-build.sh index 5f3cab542a..be8275ef9f 100755 --- a/scripts/test-build.sh +++ b/scripts/test-build.sh @@ -38,7 +38,7 @@ # - DPDK_DEP_MOFED (y/[n]) # - DPDK_DEP_PCAP (y/[n]) # - DPDK_NOTIFY (notify-send) -. scripts/load-devel-config.sh +. $(dirname $(readlink -e $0))/load-devel-config.sh print_usage () { echo "usage: $(basename $0) [-h] [-jX] [-s] [config1 [config2] ...]]"