scripts: fix run in any directory

The path to load-devel-config.sh must be relative to the script.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
This commit is contained in:
Thomas Monjalon 2016-03-14 21:55:13 +01:00
parent f795c1e66e
commit af6bc978ad
2 changed files with 2 additions and 2 deletions

View File

@ -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}

View File

@ -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] ...]]"