]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
docs: Move the "features" tools to tools/docs
authorJonathan Corbet <corbet@lwn.net>
Wed, 13 Aug 2025 16:50:20 +0000 (10:50 -0600)
committerJonathan Corbet <corbet@lwn.net>
Tue, 28 Oct 2025 22:01:00 +0000 (16:01 -0600)
The scripts for managing the features docs are found in three different
directories; unite them all under tools/docs and update references as
needed.

Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/sphinx/kernel_feat.py
tools/docs/features-refresh.sh [moved from Documentation/features/scripts/features-refresh.sh with 100% similarity]
tools/docs/get_feat.pl [moved from scripts/get_feat.pl with 99% similarity]
tools/docs/list-arch.sh [moved from Documentation/features/list-arch.sh with 83% similarity]

index aaac76892cebb0bc9d2a420ed198b24b0a866d9d..81c67ef23d8dead561fceee4be3ad85223dade81 100644 (file)
@@ -13,7 +13,7 @@
     :license:    GPL Version 2, June 1991 see Linux/COPYING for details.
 
     The ``kernel-feat`` (:py:class:`KernelFeat`) directive calls the
-    scripts/get_feat.pl script to parse the Kernel ABI files.
+    tools/docs/get_feat.pl script to parse the Kernel ABI files.
 
     Overview of directive's argument and options.
 
@@ -85,7 +85,7 @@ class KernelFeat(Directive):
         srctree = os.path.abspath(os.environ["srctree"])
 
         args = [
-            os.path.join(srctree, 'scripts/get_feat.pl'),
+            os.path.join(srctree, 'tools/docs/get_feat.pl'),
             'rest',
             '--enable-fname',
             '--dir',
similarity index 99%
rename from scripts/get_feat.pl
rename to tools/docs/get_feat.pl
index 40fb28c8424edfb47b367b6c05df9db7cc2d3a98..d75e7c85dc85a780de7287db5ec0ef0a34a5313d 100755 (executable)
@@ -18,7 +18,7 @@ my $enable_fname;
 my $basename = abs_path($0);
 $basename =~ s,/[^/]+$,/,;
 
-my $prefix=$basename . "../Documentation/features";
+my $prefix=$basename . "../../Documentation/features";
 
 # Used only at for full features output. The script will auto-adjust
 # such values for the minimal possible values
similarity index 83%
rename from Documentation/features/list-arch.sh
rename to tools/docs/list-arch.sh
index ac8ff7f6f859e10f409dd55b76244f05f1695181..96fe83b7058b9c14797e357e4ec24aee9202d341 100755 (executable)
@@ -8,4 +8,4 @@
 
 ARCH=${1:-$(uname -m | sed 's/x86_64/x86/' | sed 's/i386/x86/' | sed 's/s390x/s390/')}
 
-$(dirname $0)/../../scripts/get_feat.pl list --arch $ARCH
+$(dirname $0)/get_feat.pl list --arch $ARCH