From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 11F8D37B4 for ; Tue, 29 Mar 2016 18:18:06 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id p65so34105995wmp.0 for ; Tue, 29 Mar 2016 09:18:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=7EyWbMxSbr5YDjLRoBuBmaUkGzxYgtdk7eP7U6UXnh8=; b=Dji+0cxt6Hdq54p3Q7j7KnTB30dk/U8Ca0koJYNbv0lgsBzQqjDClqGWQFpgURPZQM iq1SU0VAPlwcnz4dZHlcU4AtTy+cWRrw3d6ILTyz2wFX2gRtHeWvCmD4CVAvFdkvg4xY +PBxA+X1jY+fLN9vcOLXZkJKTzkR+P0/gA0Iv+8GHQMRD/UUjgpcfFRnPTWByZSMkAWc /2DMq+8qxY2+SQH4rGPv0cUO9srHN6kb21i3mSuz8WpZQg3YT1vGMDC1krEKCZd77bdY n3vsacqATeHwDSgo8NyUNVefIWTkxLDy6WwF0saAf/6o43s9qHR/8akBebytrzHStLCm ytKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=7EyWbMxSbr5YDjLRoBuBmaUkGzxYgtdk7eP7U6UXnh8=; b=iGNyoRmzRzEJK7JqAQZBR5sCJ+nP0E6T4BNSnhRZU1HHFaFOr/EO/ozsViuLFsJe/7 /FgPsDh0MHwxqBvp68m+Vj+/E/Q5FN5XG3I46K7iSlPGme5wrv0t8/ug3lltN/EiC0RB rNv2JlJNB8rqkaSaZsF912tBvKKxZZNBETP5BZphdX4jE/ytdCww8j5buelbLo+1ZqFC Xff7ZX8zOAZZQNqTao3/s0iY+ltHgV3DYYabW4ySrpXeOP9wSmdyO5Lm9RC4EQJPxC13 Cvu6uOLIkMvzx43ktgcOJOx4UQRnpR2ggvhbBR08K1PIhb3yC5MFqNRaTeDm+fNReGhA U87w== X-Gm-Message-State: AD7BkJJA8VP+6tg2uQk2ykVBG57wiDS2+fpdnUBH38bGjlGObhZQNtMck/H+hM5g3ezIapwx X-Received: by 10.28.138.198 with SMTP id m189mr17283601wmd.19.1459268285907; Tue, 29 Mar 2016 09:18:05 -0700 (PDT) Received: from XPS13.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id jf6sm30004635wjb.2.2016.03.29.09.18.05 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2016 09:18:05 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Tue, 29 Mar 2016 18:15:47 +0200 Message-Id: <1459268154-29558-2-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1459268154-29558-1-git-send-email-thomas.monjalon@6wind.com> References: <1459268154-29558-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH 1/8] scripts: fix run in any directory X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2016 16:18:06 -0000 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 fcb24fd..5c58a20 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 5f3cab5..be8275e 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.7.0