From af6bc978ad9441d830037c160b4e6082b3e4b989 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Mon, 14 Mar 2016 21:55:13 +0100 Subject: [PATCH] scripts: fix run in any directory The path to load-devel-config.sh must be relative to the script. Signed-off-by: Thomas Monjalon --- scripts/checkpatches.sh | 2 +- scripts/test-build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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] ...]]" -- 2.20.1