From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wj0-f169.google.com (mail-wj0-f169.google.com [209.85.210.169]) by dpdk.org (Postfix) with ESMTP id CAE2F316B for ; Thu, 15 Dec 2016 22:59:30 +0100 (CET) Received: by mail-wj0-f169.google.com with SMTP id xy5so77214186wjc.0 for ; Thu, 15 Dec 2016 13:59:30 -0800 (PST) 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=yCPvmPhIHAI8SROqVy4nvHjGSzm195GFepdUa1dm2YM=; b=g65b9D1pmw7sQ+O5597m+VnJ3tI0jE0GwzzuqUwwM4uc9NiE9rjQoI+UFfLU+YR5Sb A4LBQ9aPJ/1PIoAM8T+gf2G4iC8iUue1gK9E69PYBG/+oTNvsqt+P1Ue/V83H8PJsmCI DtiRg4sLer5aYYJM6kka7L44zWuFImfs7RF0vi2TZ9silXZbr3EeWqhUdOq6+k+QAgyI cFXWzWFpW9aMH3DKNwfHcTsXfi0NF4Ari8izX2ycEcSs4zlJ7eEt4E8ZpQHlvZA+9BLb mkfC+rllhWQ3McJJBcU8oSGw9E56EqdNf/D2YjeBM0biAB6P3bwnwsLh8Zog9Z5jWboF Ypdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=yCPvmPhIHAI8SROqVy4nvHjGSzm195GFepdUa1dm2YM=; b=iYNdusDDccx/zVohDvdsKHnSsrjsqvvWaQ288i1nH9XA1apivTksQZK71mNaWHh204 PYJSI5gcYeMqr8E61lOf+zpFZr1p5mAEYMlP6qWSc+6FM1l9BMaa+xvneY8B/ZdM2sps qKujelWhHfd+JwqI4RUObt8T/rcLmT4UFvSnZ2kq4UTys6YW1C6zfmgUSMsNklQ2p50J 7VIlFRKYq5QdI0aAqVCz1INtwfPx/6pJNqUr46f41tFzo4n0P6l9sgEi5wdMF/163QDa 6A6AkJLXBInorxNap4BCxUltObv/WbW+Jlsz6T2gu09S1EuOV8iT34AtN750pv2tiC8v feLw== X-Gm-Message-State: AKaTC00LXRbnnwO8F6uevQMi8G/jFHhC1g6OuKVQzOxK8jQX5qJ9lK4jvWSDdapd9hBnaO+d X-Received: by 10.194.148.134 with SMTP id ts6mr3374234wjb.220.1481839170255; Thu, 15 Dec 2016 13:59:30 -0800 (PST) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id w8sm440819wmw.4.2016.12.15.13.59.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Dec 2016 13:59:29 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Thu, 15 Dec 2016 22:59:08 +0100 Message-Id: <1481839149-26684-3-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1481839149-26684-1-git-send-email-thomas.monjalon@6wind.com> References: <1481839149-26684-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH 2/3] scripts: move to devtools X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2016 21:59:31 -0000 The remaining scripts in the scripts/ directory are only useful to developers. That's why devtools/ is a better name. Signed-off-by: Thomas Monjalon --- MAINTAINERS | 14 +++++++------- {scripts => devtools}/check-git-log.sh | 0 {scripts => devtools}/check-includes.sh | 0 {scripts => devtools}/check-maintainers.sh | 0 {scripts => devtools}/checkpatches.sh | 0 {scripts => devtools}/cocci.sh | 2 +- {scripts => devtools}/cocci/mtod-offset.cocci | 0 {scripts => devtools}/git-log-fixes.sh | 0 {scripts => devtools}/load-devel-config | 0 {scripts => devtools}/test-build.sh | 0 {scripts => devtools}/test-null.sh | 0 {scripts => devtools}/validate-abi.sh | 0 doc/guides/contributing/patches.rst | 8 ++++---- doc/guides/contributing/versioning.rst | 10 +++++----- 14 files changed, 17 insertions(+), 17 deletions(-) rename {scripts => devtools}/check-git-log.sh (100%) rename {scripts => devtools}/check-includes.sh (100%) rename {scripts => devtools}/check-maintainers.sh (100%) rename {scripts => devtools}/checkpatches.sh (100%) rename {scripts => devtools}/cocci.sh (98%) rename {scripts => devtools}/cocci/mtod-offset.cocci (100%) rename {scripts => devtools}/git-log-fixes.sh (100%) rename {scripts => devtools}/load-devel-config (100%) rename {scripts => devtools}/test-build.sh (100%) rename {scripts => devtools}/test-null.sh (100%) rename {scripts => devtools}/validate-abi.sh (100%) diff --git a/MAINTAINERS b/MAINTAINERS index b0f5b8a..e779a5d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -24,13 +24,13 @@ General Project Administration M: Thomas Monjalon T: git://dpdk.org/dpdk F: MAINTAINERS -F: scripts/check-maintainers.sh -F: scripts/check-git-log.sh -F: scripts/check-includes.sh -F: scripts/checkpatches.sh -F: scripts/git-log-fixes.sh -F: scripts/load-devel-config -F: scripts/test-build.sh +F: devtools/check-maintainers.sh +F: devtools/check-git-log.sh +F: devtools/check-includes.sh +F: devtools/checkpatches.sh +F: devtools/git-log-fixes.sh +F: devtools/load-devel-config +F: devtools/test-build.sh Stable Branches --------------- diff --git a/scripts/check-git-log.sh b/devtools/check-git-log.sh similarity index 100% rename from scripts/check-git-log.sh rename to devtools/check-git-log.sh diff --git a/scripts/check-includes.sh b/devtools/check-includes.sh similarity index 100% rename from scripts/check-includes.sh rename to devtools/check-includes.sh diff --git a/scripts/check-maintainers.sh b/devtools/check-maintainers.sh similarity index 100% rename from scripts/check-maintainers.sh rename to devtools/check-maintainers.sh diff --git a/scripts/checkpatches.sh b/devtools/checkpatches.sh similarity index 100% rename from scripts/checkpatches.sh rename to devtools/checkpatches.sh diff --git a/scripts/cocci.sh b/devtools/cocci.sh similarity index 98% rename from scripts/cocci.sh rename to devtools/cocci.sh index 7acc256..4ca5025 100755 --- a/scripts/cocci.sh +++ b/devtools/cocci.sh @@ -33,7 +33,7 @@ # Apply coccinelle transforms. SRCTREE=$(readlink -f $(dirname $0)/..) -COCCI=$SRCTREE/scripts/cocci +COCCI=$SRCTREE/devtools/cocci [ -n "$SPATCH" ] || SPATCH=$(which spatch) PATCH_LIST="$@" diff --git a/scripts/cocci/mtod-offset.cocci b/devtools/cocci/mtod-offset.cocci similarity index 100% rename from scripts/cocci/mtod-offset.cocci rename to devtools/cocci/mtod-offset.cocci diff --git a/scripts/git-log-fixes.sh b/devtools/git-log-fixes.sh similarity index 100% rename from scripts/git-log-fixes.sh rename to devtools/git-log-fixes.sh diff --git a/scripts/load-devel-config b/devtools/load-devel-config similarity index 100% rename from scripts/load-devel-config rename to devtools/load-devel-config diff --git a/scripts/test-build.sh b/devtools/test-build.sh similarity index 100% rename from scripts/test-build.sh rename to devtools/test-build.sh diff --git a/scripts/test-null.sh b/devtools/test-null.sh similarity index 100% rename from scripts/test-null.sh rename to devtools/test-null.sh diff --git a/scripts/validate-abi.sh b/devtools/validate-abi.sh similarity index 100% rename from scripts/validate-abi.sh rename to devtools/validate-abi.sh diff --git a/doc/guides/contributing/patches.rst b/doc/guides/contributing/patches.rst index fabddbe..fe42679 100644 --- a/doc/guides/contributing/patches.rst +++ b/doc/guides/contributing/patches.rst @@ -242,7 +242,7 @@ For example:: Checking the Patches -------------------- -Patches should be checked for formatting and syntax issues using the ``checkpatches.sh`` script in the ``scripts`` +Patches should be checked for formatting and syntax issues using the ``checkpatches.sh`` script in the ``devtools`` directory of the DPDK repo. This uses the Linux kernel development tool ``checkpatch.pl`` which can be obtained by cloning, and periodically, updating the Linux kernel sources. @@ -257,7 +257,7 @@ files, in order of preference:: Once the environment variable the script can be run as follows:: - scripts/checkpatches.sh ~/patch/ + devtools/checkpatches.sh ~/patch/ The script usage is:: @@ -284,10 +284,10 @@ Where the range is a ``git log`` option. Checking Compilation -------------------- -Compilation of patches and changes should be tested using the the ``test-build.sh`` script in the ``scripts`` +Compilation of patches and changes should be tested using the the ``test-build.sh`` script in the ``devtools`` directory of the DPDK repo:: - scripts/test-build.sh x86_64-native-linuxapp-gcc+next+shared + devtools/test-build.sh x86_64-native-linuxapp-gcc+next+shared The script usage is:: diff --git a/doc/guides/contributing/versioning.rst b/doc/guides/contributing/versioning.rst index 08e2e21..fbc44a7 100644 --- a/doc/guides/contributing/versioning.rst +++ b/doc/guides/contributing/versioning.rst @@ -457,7 +457,7 @@ versions of the symbol. Running the ABI Validator ------------------------- -The ``scripts`` directory in the DPDK source tree contains a utility program, +The ``devtools`` directory in the DPDK source tree contains a utility program, ``validate-abi.sh``, for validating the DPDK ABI based on the Linux `ABI Compliance Checker `_. @@ -470,7 +470,7 @@ utilities which can be installed via a package manager. For example:: The syntax of the ``validate-abi.sh`` utility is:: - ./scripts/validate-abi.sh + ./devtools/validate-abi.sh Where ``REV1`` and ``REV2`` are valid gitrevisions(7) https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html @@ -479,13 +479,13 @@ on the local repo and target is the usual DPDK compilation target. For example:: # Check between the previous and latest commit: - ./scripts/validate-abi.sh HEAD~1 HEAD x86_64-native-linuxapp-gcc + ./devtools/validate-abi.sh HEAD~1 HEAD x86_64-native-linuxapp-gcc # Check between two tags: - ./scripts/validate-abi.sh v2.0.0 v2.1.0 x86_64-native-linuxapp-gcc + ./devtools/validate-abi.sh v2.0.0 v2.1.0 x86_64-native-linuxapp-gcc # Check between git master and local topic-branch "vhost-hacking": - ./scripts/validate-abi.sh master vhost-hacking x86_64-native-linuxapp-gcc + ./devtools/validate-abi.sh master vhost-hacking x86_64-native-linuxapp-gcc After the validation script completes (it can take a while since it need to compile both tags) it will create compatibility reports in the -- 2.7.0