]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
scripts: Move helper scripts to a central place
authorDaniel Wagner <dwagner@suse.de>
Fri, 23 Jun 2023 08:02:02 +0000 (10:02 +0200)
committerDaniel Wagner <wagi@monom.org>
Fri, 23 Jun 2023 14:11:26 +0000 (16:11 +0200)
The helper scripts for maintaining are distributed over several
directories. Let's move them to the scripts directory.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
doc/meson.build
doc/rst/meson.build
meson.build
scripts/kernel-doc [moved from doc/kernel-doc with 100% similarity]
scripts/kernel-doc-check [moved from doc/kernel-doc-check with 100% similarity, mode: 0755]
scripts/list-man-pages.sh [moved from doc/list-man-pages.sh with 100% similarity]
scripts/list-pre-compiled.sh [moved from doc/list-pre-compiled.sh with 100% similarity]
scripts/meson-vcs-tag.sh [moved from meson-vcs-tag.sh with 100% similarity]
scripts/release.sh [moved from release.sh with 100% similarity]
scripts/update-docs.sh [moved from doc/update-docs.sh with 100% similarity]

index 480db17005b2d5101775bd2dbbe920ccf820b952..f12f3b987d03d8a92cccd4683cb03c12b139aab1 100644 (file)
@@ -45,10 +45,12 @@ endforeach
 
 subdir('rst')
 
+top_source_dir = meson.current_source_dir() + '/../'
+
 want_docs = get_option('docs')
 want_docs_build = get_option('docs-build')
-kernel_doc = find_program('kernel-doc')
-kernel_doc_check = find_program('kernel-doc-check')
+kernel_doc = find_program(top_source_dir + 'scripts/kernel-doc')
+kernel_doc_check = find_program(top_source_dir +'scripts/kernel-doc-check')
 
 test('kdoc', kernel_doc_check, args: api_paths)
 
@@ -56,7 +58,7 @@ if want_docs != 'false'
 
   if want_docs == 'all' or want_docs == 'man'
     mandir = join_paths(get_option('mandir'), 'man2')
-    list_man_pages = find_program('list-man-pages.sh')
+    list_man_pages = find_program(top_source_dir + 'scripts/list-man-pages.sh')
     if want_docs_build
       foreach apif : api_paths
         c = run_command(list_man_pages, apif, check: true)
@@ -79,7 +81,7 @@ if want_docs != 'false'
       endforeach
     else
       if want_docs == 'all' or want_docs == 'man'
-        list_pre_compiled = find_program('list-pre-compiled.sh')
+        list_pre_compiled = find_program(top_source_dir + 'scripts/list-pre-compiled.sh')
         m = run_command(list_pre_compiled, check: true)
         man_pages = m.stdout().strip().split('\n')
         install_data(man_pages, install_dir: mandir)
index ea791155552de102f21e310e604a2683110c4156..e54c381b1752b9ccdf2114c6a1eda441bc7889f4 100644 (file)
@@ -1,17 +1,19 @@
+top_source_dir = meson.current_source_dir() + '/../../'
+
 want_docs = get_option('docs')
 
 if want_docs != 'false'
   want_docs_build = get_option('docs-build')
   rstdir = get_option('rstdir')
   if want_docs_build
-    kernel_doc = find_program('../kernel-doc')
+    kernel_doc = find_program(top_source_dir + 'scripts/kernel-doc')
 
     conf = configuration_data()
     conf.set('SYSCONFDIR', sysconfdir)
 
     if want_docs == 'all' or want_docs == 'rst' or want_docs == 'html'
       foreach apif : api_files
-        afile = files('../../src/nvme/' + apif)
+        afile = files(top_source_dir + 'src/nvme/' + apif)
         subst = configure_file(
             input: afile,
             output: '@BASENAME@.subst',
index 7cb1049f47b3d4e59a1c578381fed3cc1547db44..5ee8a3f19d054c33edfbc64760dbba24cf636465 100644 (file)
@@ -42,7 +42,7 @@ version_tag = get_option('version-tag')
 if version_tag != ''
         conf.set('GIT_VERSION', '"@0@"'.format(version_tag))
 else
-    r = run_command('meson-vcs-tag.sh',
+    r = run_command('scripts/meson-vcs-tag.sh',
                     meson.current_source_dir(),
                     meson.project_version(),
                     check: true)
similarity index 100%
rename from doc/kernel-doc
rename to scripts/kernel-doc
old mode 100644 (file)
new mode 100755 (executable)
similarity index 100%
rename from doc/kernel-doc-check
rename to scripts/kernel-doc-check
similarity index 100%
rename from meson-vcs-tag.sh
rename to scripts/meson-vcs-tag.sh
similarity index 100%
rename from release.sh
rename to scripts/release.sh
similarity index 100%
rename from doc/update-docs.sh
rename to scripts/update-docs.sh