]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: use files() for man page source files
authorJordan Williams <jordan@jwillikers.com>
Tue, 26 Nov 2024 15:07:15 +0000 (09:07 -0600)
committerKarel Zak <kzak@redhat.com>
Wed, 12 Feb 2025 09:52:47 +0000 (10:52 +0100)
The files() command in Meson allows tracking files across directories.
It requires the command to be used in the directory containing the
files.
This commit uses the files() command for all of the man page sources.
This is a preparatory commit for translating the man pages.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
20 files changed:
disk-utils/meson.build
lib/meson.build
libblkid/meson.build
liblastlog2/man/meson.build [new file with mode: 0644]
liblastlog2/meson.build
libsmartcols/meson.build
libuuid/man/meson.build [new file with mode: 0644]
libuuid/meson.build
login-utils/meson.build
lsfd-cmd/meson.build
man-common/meson.build [new file with mode: 0644]
meson.build
misc-utils/meson.build
pam_lastlog2/man/meson.build [new file with mode: 0644]
pam_lastlog2/meson.build
schedutils/meson.build [new file with mode: 0644]
sys-utils/meson.build
term-utils/meson.build
tests/.gitignore [deleted file]
text-utils/meson.build

index 39b6cba96b56d9c5de369cd7bc4d6366ee26c2bb..2854ddb1fc12948dff49f754ac40c56528f494c2 100644 (file)
@@ -1,14 +1,17 @@
 mkfs_sources = files(
   'mkfs.c',
 )
+mkfs_manadocs = files('mkfs.8.adoc')
 
 mkfs_bfs_sources = files(
   'mkfs.bfs.c',
 )
+mkfs_bfs_manadocs = files('mkfs.bfs.8.adoc')
 
 isosize_sources = files(
   'isosize.c',
 )
+isosize_manadocs = files('isosize.8.adoc')
 
 mkswap_sources = files(
   'mkswap.c',
@@ -17,28 +20,33 @@ mkswap_sources = files(
 if lib_selinux.found()
   mkswap_sources += selinux_utils_c
 endif
+mkswap_manadocs = files('mkswap.8.adoc')
 
 swaplabel_sources = files(
   'swaplabel.c',
 ) + \
   swapprober_c
+swaplabel_manadocs = files('swaplabel.8.adoc')
 
 fsck_sources = files(
   'fsck.c',
 ) + \
   monotonic_c
+fsck_manadocs = files('fsck.8.adoc')
 
 mkfs_minix_sources = files(
   'mkfs.minix.c',
   'minix_programs.h',
 ) + \
   ismounted_c
+mkfs_minix_manadocs = files('mkfs.minix.8.adoc')
 
 fsck_minix_sources = files(
   'fsck.minix.c',
   'minix_programs.h',
 ) + \
   ismounted_c
+fsck_minix_manadocs = files('fsck.minix.8.adoc')
 
 mkfs_cramfs_sources = files(
   'mkfs.cramfs.c',
@@ -51,18 +59,22 @@ fsck_cramfs_sources = files(
   'cramfs.h',
   'cramfs_common.c',
 )
+fsck_cramfs_manadocs = files('fsck.cramfs.8.adoc')
 
 raw_sources = files(
   'raw.c',
 )
+raw_manadocs = files('raw.8.adoc')
 
 fdformat_sources = files(
   'fdformat.c',
 )
+fdformat_manadocs = files('fdformat.8.adoc')
 
 blockdev_sources = files(
   'blockdev.c',
 )
+blockdev_manadocs = files('blockdev.8.adoc')
 
 fdisk_sources = files(
   'fdisk.c',
@@ -71,25 +83,32 @@ fdisk_sources = files(
   'fdisk-list.c',
   'fdisk-list.h') + \
   pager_c
+fdisk_manadocs = files('fdisk.8.adoc')
 
 sfdisk_sources = files(
   'sfdisk.c',
   'fdisk-list.c',
   'fdisk-list.h')
+sfdisk_manadocs = files('sfdisk.8.adoc')
 
 cfdisk_sources = files(
   'cfdisk.c',
 )
+cfdisk_manadocs = files('cfdisk.8.adoc')
 
 addpart_sources = files(
   'addpart.c',
 )
+addpart_manadocs = files('addpart.8.adoc')
 delpart_sources = files(
   'delpart.c',
 )
+delpart_manadocs = files('delpart.8.adoc')
 resizepart_sources = files(
   'resizepart.c',
 )
+resizepart_manadocs = files('resizepart.8.adoc')
 partx_sources = files(
   'partx.c',
 )
+partx_manadocs = files('partx.8.adoc')
index 58d5da43f803bc0b57056c603925b01113e9e73a..25febbc19d2100004d1bfa9dd2ba20fdcebac1d1 100644 (file)
@@ -106,3 +106,5 @@ lib_tcolors = static_library(
   lib_color_sources,
   include_directories : dir_include,
   dependencies : curses_libs)
+
+lib_tcolors_manadocs = files('terminal-colors.d.5.adoc')
index 82538e135256754993a181a9764e15205fb7039e..2a23b8dbc8b2213c7c9b3457f00c07e8d9f64bd1 100644 (file)
@@ -51,7 +51,7 @@ lib_blkid_sources = '''
   src/partitions/sun.c
   src/partitions/ultrix.c
   src/partitions/unixware.c
-  
+
   src/superblocks/adaptec_raid.c
   src/superblocks/apfs.c
   src/superblocks/bcache.c
@@ -129,6 +129,8 @@ if LINUX
   '''.split()
 endif
 
+lib_blkid_manadocs = files('libblkid.3.adoc')
+
 libblkid_sym = 'src/libblkid.sym'
 libblkid_sym_path = '@0@/@1@'.format(meson.current_source_dir(), libblkid_sym)
 
diff --git a/liblastlog2/man/meson.build b/liblastlog2/man/meson.build
new file mode 100644 (file)
index 0000000..2c9b0d4
--- /dev/null
@@ -0,0 +1,10 @@
+lib_lastlog2_manadocs = files(
+  'lastlog2.3.adoc',
+  'll2_write_entry.3.adoc',
+  'll2_read_entry.3.adoc',
+  'll2_import_lastlog.3.adoc',
+  'll2_read_all.3.adoc',
+  'll2_remove_entry.3.adoc',
+  'll2_rename_user.3.adoc',
+  'll2_update_login_time.3.adoc'
+)
index 6f8db53cf941ce9596f88d1eeeac1343c6645f28..270c5bd61e0f1bae421f5dc6d24f26b232e529b1 100644 (file)
@@ -5,7 +5,9 @@ lib_lastlog2_sources = '''
   src/lastlog2.h
   src/lastlog2P.h
   src/lastlog2.c
-'''.split()  
+'''.split()
+
+subdir('man')
 
 liblastlog2_sym = 'src/liblastlog2.sym'
 liblastlog2_sym_path = '@0@/@1@'.format(meson.current_source_dir(), liblastlog2_sym)
@@ -60,4 +62,4 @@ if build_liblastlog2
       check : true)
   endforeach
 
-endif  
+endif
index 9de18da6a993b39573139aa8aaae20424332f82d..a1d2d482991feb2de3dbe83b4ce9debaf1dfce12 100644 (file)
@@ -74,5 +74,5 @@ if build_libsmartcols
 endif
 
 if build_libsmartcols
-  manadocs += ['libsmartcols/scols-filter.5.adoc']
+  lib_smartcols_manadocs = files('scols-filter.5.adoc')
 endif
diff --git a/libuuid/man/meson.build b/libuuid/man/meson.build
new file mode 100644 (file)
index 0000000..763304c
--- /dev/null
@@ -0,0 +1,11 @@
+lib_uuid_manadocs = files(
+    'uuid.3.adoc',
+    'uuid_clear.3.adoc',
+    'uuid_compare.3.adoc',
+    'uuid_copy.3.adoc',
+    'uuid_generate.3.adoc',
+    'uuid_is_null.3.adoc',
+    'uuid_parse.3.adoc',
+    'uuid_time.3.adoc',
+    'uuid_unparse.3.adoc'
+)
index a4d62d2259280dbc22f465e4b3b759f3f4503953..649650ac343857fce0e323d149f50288424e4a6a 100644 (file)
@@ -13,6 +13,8 @@ lib_uuid_sources = '''
   src/uuid_time.c
 '''.split()
 
+subdir('man')
+
 predefined_c = files('src/predefined.c')
 pack_c = files('src/pack.c')
 unpack_c = files('src/unpack.c')
index 14d7b39efec00ce20aede7bb1b0d097b9c2ced09..251d8de46016a7094acbc0b64c63f2cd3156eb64 100644 (file)
@@ -3,6 +3,10 @@ chfn_chsh_sources = files(
   'ch-common.h',
 )
 chfn_chsh_deps = [lib_readline]
+chfn_chsh_manadocs = files(
+  'chfn.1.adoc',
+  'chsh.1.adoc',
+)
 
 if chfn_chsh_password
   chfn_chsh_sources += files(
@@ -51,13 +55,30 @@ last_sources = files(
   'last.c',
 ) + \
   monotonic_c
+last_manadocs = files('last.1.adoc')
 
 login_sources = files(
   'login.c',
 )
+login_manadocs = files('login.1.adoc')
 
 sulogin_sources = files(
   'sulogin.c',
   'sulogin-consoles.c',
   'sulogin-consoles.h',
 )
+sulogin_manadocs = files('sulogin.8.adoc')
+
+lslogins_manadocs = files('lslogins.1.adoc')
+
+nologin_manadocs = files('nologin.8.adoc')
+
+newgrp_manadocs = files('newgrp.1.adoc')
+
+runuser_manadocs = files('runuser.1.adoc')
+
+su_manadocs = files('su.1.adoc')
+
+utmpdump_manadocs = files('utmpdump.1.adoc')
+
+vipw_manadocs = files('vipw.8.adoc')
index bc8b6fdeb66dbd006a076f27ab45f049e7d76b47..cafdbc2defbaaf9d98ba56f1d3f11dc9a3667476 100644 (file)
@@ -12,3 +12,5 @@ lsfd_sources = files (
   'fifo.c',
   'pidfd.c',
 )
+
+lsfd_manadocs = files('lsfd.1.adoc')
diff --git a/man-common/meson.build b/man-common/meson.build
new file mode 100644 (file)
index 0000000..647f54c
--- /dev/null
@@ -0,0 +1,11 @@
+man_common_adocs = files(
+  'bugreports.adoc',
+  'colors.adoc',
+  'footer.adoc',
+  'footer-config.adoc',
+  'footer-lib.adoc',
+  'help-version.adoc',
+  'in-bytes.adoc',
+  'manpage-stub.adoc',
+  'translation.adoc',
+)
index 5ee92e759082c51466b04447dab74a6b9e217639..74d1f542a6ec1ba8f1bf4d9c988cdb703748b928 100644 (file)
@@ -1022,7 +1022,9 @@ subdir('pam_lastlog2')
 subdir('login-utils')
 subdir('sys-utils')
 subdir('disk-utils')
+subdir('man-common')
 subdir('misc-utils')
+subdir('schedutils')
 subdir('text-utils')
 subdir('term-utils')
 subdir('lsfd-cmd')
@@ -1064,7 +1066,7 @@ exe2 = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += [exe, exe2]
-  manadocs += ['login-utils/chfn.1.adoc', 'login-utils/chsh.1.adoc']
+  manadocs += chfn_chsh_manadocs
   bashcompletions += ['chfn', 'chsh']
 endif
 
@@ -1099,7 +1101,7 @@ if opt and not is_disabler(exe)
   meson.add_install_script(meson_make_symlink,
                            'last',
                            usrbin_exec_dir / 'lastb')
-  manadocs += ['login-utils/last.1.adoc']
+  manadocs += last_manadocs
   manlinks += {'lastb.1': 'last.1'}
   bashcompletions += ['last']
   bashcompletionslinks += {'lastb': 'last'}
@@ -1116,7 +1118,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['login-utils/nologin.8.adoc']
+  manadocs += nologin_manadocs
 endif
 
 opt = not get_option('build-utmpdump').disabled()
@@ -1130,7 +1132,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['login-utils/utmpdump.1.adoc']
+  manadocs += utmpdump_manadocs
   bashcompletions += ['utmpdump']
 endif
 
@@ -1154,7 +1156,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['login-utils/su.1.adoc']
+  manadocs += su_manadocs
   bashcompletions += ['su']
 endif
 
@@ -1170,7 +1172,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['login-utils/newgrp.1.adoc']
+  manadocs += newgrp_manadocs
   bashcompletions += ['newgrp']
 endif
 
@@ -1190,7 +1192,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['login-utils/lslogins.1.adoc']
+  manadocs += lslogins_manadocs
   bashcompletions += ['lslogins']
 endif
 
@@ -1210,7 +1212,7 @@ if opt and not is_disabler(exe)
   meson.add_install_script(meson_make_symlink,
                            'vipw',
                            usrbin_exec_dir / 'vigr')
-  manadocs += ['login-utils/vipw.8.adoc']
+  manadocs += vipw_manadocs
   meson.add_install_script(meson_make_symlink,
                            'vipw.8',
                            mandir / 'man8/vigr.8')
@@ -1236,7 +1238,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['login-utils/runuser.1.adoc']
+  manadocs += runuser_manadocs
   bashcompletionslinks += {'runuser': 'su'}
 endif
 
@@ -1253,7 +1255,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['text-utils/bits.1.adoc']
+  manadocs += bits_manadocs
   bashcompletions += ['bits']
 endif
 
@@ -1268,7 +1270,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['text-utils/col.1.adoc']
+  manadocs += col_manadocs
   bashcompletions += ['col']
 endif
 
@@ -1282,7 +1284,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['text-utils/colcrt.1.adoc']
+  manadocs += colcrt_manadocs
   bashcompletions += ['colcrt']
 endif
 
@@ -1297,7 +1299,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['text-utils/colrm.1.adoc']
+  manadocs += colrm_manadocs
   bashcompletions += ['colrm']
 endif
 
@@ -1311,7 +1313,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['text-utils/rev.1.adoc']
+  manadocs += rev_manadocs
   bashcompletions += ['rev']
 endif
 
@@ -1325,7 +1327,7 @@ exe = executable(
   install : true)
 if not is_disabler(exe)
   exes += exe
-  manadocs += ['text-utils/column.1.adoc']
+  manadocs += column_manadocs
   bashcompletions += ['column']
 endif
 
@@ -1339,7 +1341,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['text-utils/line.1.adoc']
+  manadocs += line_manadocs
 endif
 
 opt = not get_option('build-pg').disabled()
@@ -1355,7 +1357,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['text-utils/pg.1.adoc']
+  manadocs += pg_manadocs
   bashcompletions += ['pg']
 endif
 
@@ -1371,7 +1373,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['text-utils/ul.1.adoc']
+  manadocs += ul_manadocs
   bashcompletions += ['ul']
 endif
 
@@ -1399,7 +1401,7 @@ exe2 = executable(
 exes += exe
 if opt and not is_disabler(exe)
   exes += [exe, exe2]
-  manadocs += ['text-utils/more.1.adoc']
+  manadocs += more_manadocs
   bashcompletions += ['more']
 endif
 
@@ -1416,7 +1418,7 @@ else
 endif
 if not is_disabler(exe)
     exes += exe
-    manadocs += ['text-utils/hexdump.1.adoc']
+    manadocs += hexdump_manadocs
     bashcompletions += ['hexdump']
 endif
 
@@ -1432,7 +1434,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/lsmem.1.adoc']
+  manadocs += lsmem_manadocs
   bashcompletions += ['lsmem']
 endif
 
@@ -1447,7 +1449,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/chmem.8.adoc']
+  manadocs += chmem_manadocs
   bashcompletions += ['chmem']
 endif
 
@@ -1462,7 +1464,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/choom.1.adoc']
+  manadocs += choom_manadocs
   bashcompletions += ['choom']
 endif
 
@@ -1489,7 +1491,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/ipcmk.1.adoc']
+  manadocs += ipcmk_manadocs
   bashcompletions += ['ipcmk']
 endif
 
@@ -1505,7 +1507,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/ipcrm.1.adoc']
+  manadocs += ipcrm_manadocs
   bashcompletions += ['ipcrm']
 endif
 
@@ -1521,7 +1523,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/ipcs.1.adoc']
+  manadocs += ipcs_manadocs
   bashcompletions += ['ipcs']
 endif
 
@@ -1537,7 +1539,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/rfkill.8.adoc']
+  manadocs += rfkill_manadocs
   bashcompletions += ['rfkill']
 endif
 
@@ -1551,7 +1553,7 @@ exe = executable(
   install : true)
 if not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/renice.1.adoc']
+  manadocs += renice_manadocs
   bashcompletions += ['renice']
 endif
 
@@ -1565,7 +1567,7 @@ exe = executable(
   install : true)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/setpgid.1.adoc']
+  manadocs += setpgid_manadocs
   bashcompletions += ['setpgid']
 endif
 
@@ -1579,7 +1581,7 @@ exe = executable(
   install : true)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/setsid.1.adoc']
+  manadocs += setsid_manadocs
   bashcompletions += ['setsid']
 endif
 
@@ -1593,7 +1595,7 @@ exe = executable(
   install : true)
 if not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/readprofile.8.adoc']
+  manadocs += readprofile_manadocs
   bashcompletions += ['readprofile']
 endif
 
@@ -1608,7 +1610,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/tunelp.8.adoc']
+  manadocs += tunelp_manadocs
   bashcompletions += ['tunelp']
 endif
 
@@ -1624,7 +1626,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/fstrim.8.adoc']
+  manadocs += fstrim_manadocs
   bashcompletions += ['fstrim']
 endif
 
@@ -1639,7 +1641,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/dmesg.1.adoc']
+  manadocs += dmesg_manadocs
   bashcompletions += ['dmesg']
 endif
 
@@ -1666,7 +1668,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/ctrlaltdel.8.adoc']
+  manadocs += ctrlaltdel_manadocs
   bashcompletions += ['ctrlaltdel']
 endif
 
@@ -1682,7 +1684,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/fsfreeze.8.adoc']
+  manadocs += fsfreeze_manadocs
   bashcompletions += ['fsfreeze']
 endif
 
@@ -1698,7 +1700,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/blkdiscard.8.adoc']
+  manadocs += blkdiscard_manadocs
   bashcompletions += ['blkdiscard']
 endif
 
@@ -1715,7 +1717,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/blkzone.8.adoc']
+  manadocs += blkzone_manadocs
   bashcompletions += ['blkzone']
 endif
 
@@ -1730,7 +1732,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/blkpr.8.adoc']
+  manadocs += blkpr_manadocs
 endif
 
 opt = get_option('build-ldattach').require(cc.has_header('linux/if.h')).allowed()
@@ -1744,7 +1746,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/ldattach.8.adoc']
+  manadocs += ldattach_manadocs
   bashcompletions += ['ldattach']
 endif
 
@@ -1761,7 +1763,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/rtcwake.8.adoc']
+  manadocs += rtcwake_manadocs
   bashcompletions += ['rtcwake']
 endif
 
@@ -1776,7 +1778,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/setarch.8.adoc']
+  manadocs += setarch_manadocs
   bashcompletions += ['setarch']
 endif
 
@@ -1814,7 +1816,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exe = exe
-  manadocs += ['sys-utils/eject.1.adoc']
+  manadocs += eject_manadocs
   bashcompletions += ['eject']
 endif
 
@@ -1829,7 +1831,7 @@ exe = executable(
   install : opt,
   build_by_default : opt)
 if opt and not is_disabler(exe)
-  manadocs += ['sys-utils/losetup.8.adoc']
+  manadocs += losetup_manadocs
   exes += exe
   bashcompletions += ['losetup']
 endif
@@ -1861,7 +1863,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/zramctl.8.adoc']
+  manadocs += zramctl_manadocs
   bashcompletions += ['zramctl']
 endif
 
@@ -1875,7 +1877,7 @@ exe = executable(
   install : true)
 if not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/prlimit.1.adoc']
+  manadocs += prlimit_manadocs
   bashcompletions += ['prlimit']
 endif
 
@@ -1892,7 +1894,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/lsns.8.adoc']
+  manadocs += lsns_manadocs
   bashcompletions += ['lsns']
 endif
 
@@ -1918,9 +1920,9 @@ exe2 = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += [exe, exe2]
-  manadocs += ['sys-utils/fstab.5.adoc',
-                   'sys-utils/mount.8.adoc',
-                   'sys-utils/umount.8.adoc']
+  manadocs += [fstab_manadocs,
+              mount_manadocs,
+                   umount_manadocs]
   bashcompletions += ['mount', 'umount']
 endif
 
@@ -1968,7 +1970,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/swapon.8.adoc']
+  manadocs += swapon_manadocs
   bashcompletions += ['swapon']
 endif
 
@@ -1999,7 +2001,7 @@ exe = executable(
   install : true)
 if not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/lscpu.1.adoc']
+  manadocs += lscpu_manadocs
   bashcompletions += ['lscpu']
 endif
 
@@ -2014,7 +2016,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/chcpu.8.adoc']
+  manadocs += chcpu_manadocs
   bashcompletions += ['chcpu']
 endif
 
@@ -2027,7 +2029,7 @@ exe = executable(
   install : true)
 if not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/wdctl.8.adoc']
+  manadocs += wdctl_manadocs
   bashcompletions += ['wdctl']
 endif
 
@@ -2041,7 +2043,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/mountpoint.1.adoc']
+  manadocs += mountpoint_manadocs
   bashcompletions += ['mountpoint']
 endif
 
@@ -2056,7 +2058,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/fallocate.1.adoc']
+  manadocs += fallocate_manadocs
   bashcompletions += ['fallocate']
 endif
 
@@ -2070,7 +2072,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/pivot_root.8.adoc']
+  manadocs += pivot_root_manadocs
   bashcompletions += ['pivot_root']
 endif
 
@@ -2087,7 +2089,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/switch_root.8.adoc']
+  manadocs += switch_root_manadocs
 endif
 
 opt = not get_option('build-unshare').disabled()
@@ -2102,7 +2104,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/unshare.1.adoc']
+  manadocs += unshare_manadocs
   bashcompletions += ['unshare']
 endif
 
@@ -2132,7 +2134,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/nsenter.1.adoc']
+  manadocs += nsenter_manadocs
   bashcompletions += ['nsenter']
 endif
 
@@ -2162,7 +2164,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/setpriv.1.adoc']
+  manadocs += setpriv_manadocs
   bashcompletions += ['setpriv']
 endif
 
@@ -2178,7 +2180,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/flock.1.adoc']
+  manadocs += flock_manadocs
   bashcompletions += ['flock']
 endif
 
@@ -2194,7 +2196,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/lsirq.1.adoc']
+  manadocs += lsirq_manadocs
   bashcompletions += ['lsirq']
 endif
 
@@ -2212,7 +2214,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/irqtop.1.adoc']
+  manadocs += irqtop_manadocs
   bashcompletions += ['irqtop']
 endif
 
@@ -2229,7 +2231,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/lsipc.1.adoc']
+  manadocs += lsipc_manadocs
   bashcompletions += ['lsipc']
 endif
 
@@ -2246,7 +2248,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['sys-utils/hwclock.8.adoc', 'sys-utils/adjtime_config.5.adoc']
+  manadocs +=  hwclock_manadocs
   bashcompletions += ['hwclock']
 endif
 
@@ -2260,7 +2262,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['disk-utils/mkfs.8.adoc']
+  manadocs += mkfs_manadocs
   bashcompletions += ['mkfs']
 endif
 
@@ -2275,7 +2277,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['disk-utils/mkfs.bfs.8.adoc']
+  manadocs += mkfs_bfs_manadocs
   bashcompletions += ['mkfs.bfs']
 endif
 
@@ -2290,7 +2292,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['disk-utils/isosize.8.adoc']
+  manadocs += isosize_manadocs
   bashcompletions += ['isosize']
 endif
 
@@ -2305,7 +2307,7 @@ exe = executable(
   install : true)
 if not is_disabler(exe)
   exes += exe
-  manadocs += ['disk-utils/mkswap.8.adoc']
+  manadocs += mkswap_manadocs
   bashcompletions += ['mkswap']
 endif
 
@@ -2320,7 +2322,7 @@ exe = executable(
   install : true)
 if not is_disabler(exe)
   exes += exe
-  manadocs += ['disk-utils/swaplabel.8.adoc']
+  manadocs += swaplabel_manadocs
   bashcompletions += ['swaplabel']
 endif
 
@@ -2336,7 +2338,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['disk-utils/fsck.8.adoc']
+  manadocs += fsck_manadocs
   bashcompletions += ['fsck']
 endif
 
@@ -2366,7 +2368,7 @@ exe3 = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += [exe, exe2, exe3]
-  manadocs += ['disk-utils/mkfs.minix.8.adoc','disk-utils/fsck.minix.8.adoc']
+  manadocs += fsck_minix_manadocs
   bashcompletions += ['mkfs.minix', 'fsck.minix']
 endif
 
@@ -2391,7 +2393,7 @@ exe2 = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += [exe, exe2]
-  manadocs += ['disk-utils/mkfs.cramfs.8.adoc','disk-utils/fsck.cramfs.8.adoc']
+  manadocs += fsck_cramfs_manadocs
   bashcompletions += ['mkfs.cramfs', 'fsck.cramfs']
 endif
 
@@ -2408,7 +2410,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['disk-utils/raw.8.adoc']
+  manadocs += raw_manadocs
   bashcompletions += ['raw']
 endif
 
@@ -2423,7 +2425,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['disk-utils/fdformat.8.adoc']
+  manadocs += fdformat_manadocs
   bashcompletions += ['fdformat']
 endif
 
@@ -2438,7 +2440,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['disk-utils/blockdev.8.adoc']
+  manadocs += blockdev_manadocs
   bashcompletions += ['blockdev']
 endif
 
@@ -2529,9 +2531,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['disk-utils/fdisk.8.adoc',
-                   'disk-utils/sfdisk.8.adoc',
-                   'disk-utils/cfdisk.8.adoc']
+  manadocs += cfdisk_manadocs + fdisk_manadocs + sfdisk_manadocs
   bashcompletions += ['cfdisk']
 endif
 
@@ -2572,10 +2572,7 @@ exe4 = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += [exe, exe2, exe3, exe4]
-  manadocs += ['disk-utils/addpart.8.adoc',
-                   'disk-utils/delpart.8.adoc',
-                   'disk-utils/resizepart.8.adoc',
-                   'disk-utils/partx.8.adoc']
+  manadocs += addpart_manadocs + delpart_manadocs + resizepart_manadocs + partx_manadocs
   bashcompletions += ['addpart', 'delpart', 'resizepart', 'partx']
 endif
 opt = opt and 'partx' in static_programs
@@ -2639,7 +2636,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['term-utils/script.1.adoc']
+  manadocs += script_manadocs
   bashcompletions += ['script']
 endif
 
@@ -2672,7 +2669,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['term-utils/scriptlive.1.adoc']
+  manadocs += scriptlive_manadocs
   bashcompletions += ['scriptlive']
 endif
 
@@ -2687,7 +2684,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['term-utils/scriptreplay.1.adoc']
+  manadocs += scriptreplay_manadocs
   bashcompletions += ['scriptreplay']
 endif
 
@@ -2703,7 +2700,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['term-utils/agetty.8.adoc']
+  manadocs += agetty_manadocs
 endif
 
 opt = not get_option('build-setterm').disabled()
@@ -2718,7 +2715,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['term-utils/setterm.1.adoc']
+  manadocs += setterm_manadocs
   bashcompletions += ['setterm']
 endif
 
@@ -2733,7 +2730,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['term-utils/mesg.1.adoc']
+  manadocs += mesg_manadocs
   bashcompletions += ['mesg']
 endif
 
@@ -2757,7 +2754,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['term-utils/wall.1.adoc']
+  manadocs += wall_manadocs
   bashcompletions += ['wall']
 endif
 
@@ -2777,7 +2774,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['term-utils/write.1.adoc']
+  manadocs += write_manadocs
   bashcompletions += ['write']
 endif
 
@@ -2797,7 +2794,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['login-utils/login.1.adoc']
+  manadocs += login_manadocs
 endif
 
 opt = not get_option('build-sulogin').disabled()
@@ -2813,7 +2810,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['login-utils/sulogin.8.adoc']
+  manadocs += sulogin_manadocs
 endif
 
 opt = not get_option('build-cal').disabled()
@@ -2829,7 +2826,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/cal.1.adoc']
+  manadocs += cal_manadocs
   bashcompletions += ['cal']
 endif
 
@@ -2845,7 +2842,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/logger.1.adoc']
+  manadocs += logger_manadocs
   bashcompletions += ['logger']
 endif
 
@@ -2871,7 +2868,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/look.1.adoc']
+  manadocs += look_manadocs
   bashcompletions += ['look']
 endif
 
@@ -2886,7 +2883,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/mcookie.1.adoc']
+  manadocs += mcookie_manadocs
   bashcompletions += ['mcookie']
 endif
 
@@ -2899,17 +2896,9 @@ if build_liblastlog2
     install_dir : usrbin_exec_dir,
     install : true)
   exes += exe
-  manadocs += ['misc-utils/lastlog2.8.adoc']
+  manadocs += lastlog2_manadocs
   bashcompletions += ['lastlog2']
-  manadocs += ['liblastlog2/man/lastlog2.3.adoc',
-               'liblastlog2/man/ll2_write_entry.3.adoc',
-              'liblastlog2/man/ll2_read_entry.3.adoc',
-              'liblastlog2/man/ll2_import_lastlog.3.adoc',
-              'liblastlog2/man/ll2_read_all.3.adoc',
-              'liblastlog2/man/ll2_remove_entry.3.adoc',
-              'liblastlog2/man/ll2_rename_user.3.adoc',
-              'liblastlog2/man/ll2_update_login_time.3.adoc'
-              ]
+  manadocs += lib_lastlog2_manadocs
 endif
 
 opt = not get_option('build-namei').disabled()
@@ -2923,7 +2912,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/namei.1.adoc']
+  manadocs += namei_manadocs
   bashcompletions += ['namei']
 endif
 
@@ -2938,7 +2927,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/whereis.1.adoc']
+  manadocs += whereis_manadocs
   bashcompletions += ['whereis']
 endif
 
@@ -2955,7 +2944,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/lslocks.8.adoc']
+  manadocs += lslocks_manadocs
   bashcompletions += ['lslocks']
 endif
 
@@ -2972,7 +2961,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/lsblk.8.adoc']
+  manadocs += lsblk_manadocs
   bashcompletions += ['lsblk']
 endif
 
@@ -2998,7 +2987,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['lsfd-cmd/lsfd.1.adoc']
+  manadocs += lsfd_manadocs
 endif
 
 exe = executable(
@@ -3011,7 +3000,7 @@ exe = executable(
   install : true)
 if not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/uuidgen.1.adoc']
+  manadocs += uuidgen_manadocs
   bashcompletions += ['uuidgen']
 endif
 
@@ -3026,7 +3015,7 @@ exe = executable(
   install : true)
 if not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/uuidparse.1.adoc']
+  manadocs += uuidparse_manadocs
   bashcompletions += ['uuidparse']
 endif
 
@@ -3052,7 +3041,7 @@ exe2 = executable(
   build_by_default : opt and program_tests)
 if not is_disabler(exe)
   exes += [exe, exe2]
-  manadocs += ['misc-utils/uuidd.8.adoc']
+  manadocs += uuidd_manadocs
   bashcompletions += ['uuidd']
 endif
 
@@ -3068,7 +3057,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/blkid.8.adoc']
+  manadocs += blkid_manadocs
   bashcompletions += ['blkid']
 endif
 
@@ -3145,7 +3134,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/findfs.8.adoc']
+  manadocs += findfs_manadocs
   bashcompletions += ['findfs']
 endif
 
@@ -3160,7 +3149,7 @@ exe = executable(
   install : true)
 if not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/wipefs.8.adoc']
+  manadocs += wipefs_manadocs
   bashcompletions += ['wipefs']
 endif
 
@@ -3176,7 +3165,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/findmnt.8.adoc']
+  manadocs += findmnt_manadocs
   bashcompletions += ['findmnt']
 endif
 
@@ -3190,7 +3179,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/kill.1.adoc']
+  manadocs += kill_manadocs
 endif
 
 opt = not get_option('build-rename').disabled()
@@ -3204,7 +3193,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/rename.1.adoc']
+  manadocs += rename_manadocs
   bashcompletions += ['rename']
 endif
 
@@ -3219,7 +3208,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/getopt.1.adoc']
+  manadocs += getopt_manadocs
   bashcompletions += ['getopt']
 endif
 
@@ -3233,7 +3222,7 @@ exe = executable(
   install : true)
 if not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/fincore.1.adoc']
+  manadocs += fincore_manadocs
   bashcompletions += ['fincore']
 endif
 
@@ -3248,7 +3237,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/hardlink.1.adoc']
+  manadocs += hardlink_manadocs
   bashcompletions += ['hardlink']
 endif
 
@@ -3263,7 +3252,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/pipesz.1.adoc']
+  manadocs += pipesz_manadocs
   bashcompletions += ['pipesz']
 endif
 
@@ -3293,7 +3282,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/fadvise.1.adoc']
+  manadocs += fadvise_manadocs
   bashcompletions += ['fadvise']
 endif
 
@@ -3308,7 +3297,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/waitpid.1.adoc']
+  manadocs += waitpid_manadocs
   bashcompletions += ['waitpid']
 endif
 
@@ -3333,7 +3322,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/enosys.1.adoc']
+  manadocs += enosys_manadocs
   bashcompletions += ['enosys']
 endif
 
@@ -3348,7 +3337,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/lsclocks.1.adoc']
+  manadocs += lsclocks_manadocs
   bashcompletions += ['lsclocks']
 endif
 
@@ -3363,7 +3352,7 @@ exe = executable(
   build_by_default : opt)
 if opt and not is_disabler(exe)
   exes += exe
-  manadocs += ['misc-utils/exch.1.adoc']
+  manadocs += exch_manadocs
   bashcompletions += ['exch']
 endif
 
@@ -3417,11 +3406,7 @@ exe5 = executable(
 
 if opt and not is_disabler(exe)
   exes += [exe, exe2, exe3, exe4, exe5]
-  manadocs += ['schedutils/chrt.1.adoc',
-               'schedutils/ionice.1.adoc',
-               'schedutils/taskset.1.adoc',
-               'schedutils/uclampset.1.adoc',
-               'schedutils/coresched.1.adoc']
+  manadocs += schedutils_manadocs
   bashcompletions += ['chrt', 'ionice', 'taskset', 'uclampset', 'coresched']
 endif
 
@@ -4035,22 +4020,13 @@ run_target(
   depends : exes)
 
 
-manadocs += ['lib/terminal-colors.d.5.adoc']
+manadocs += lib_tcolors_manadocs
 if build_libblkid
-  manadocs += ['libblkid/libblkid.3.adoc']
+  manadocs += lib_blkid_manadocs + lib_smartcols_manadocs
 endif
 
 if build_libuuid
-  manadocs += [
-    'libuuid/man/uuid.3.adoc',
-    'libuuid/man/uuid_clear.3.adoc',
-    'libuuid/man/uuid_compare.3.adoc',
-    'libuuid/man/uuid_copy.3.adoc',
-    'libuuid/man/uuid_generate.3.adoc',
-    'libuuid/man/uuid_is_null.3.adoc',
-    'libuuid/man/uuid_parse.3.adoc',
-    'libuuid/man/uuid_time.3.adoc',
-    'libuuid/man/uuid_unparse.3.adoc']
+  manadocs += lib_uuid_manadocs
   manlinks += {
     'uuid_generate_random.3': 'uuid_generate.3',
     'uuid_generate_time.3': 'uuid_generate.3',
@@ -4061,8 +4037,8 @@ endif
 asciidoctor = find_program('asciidoctor', required : false)
 if asciidoctor.found()
   foreach adoc : manadocs
-    name = adoc.split('/')[-1]
-    page = name.split('.adoc')[0]
+    name = fs.name(adoc)
+    page = fs.stem(adoc)
     section = page.split('.')[-1]
     mandirn = mandir / 'man' + section
     input = adoc
index dae2698b37c916b7fbc0e4e54a1a383734b7fea3..1cd4713ce472f8be7daa3e8f3156c08360a78630 100644 (file)
@@ -1,40 +1,52 @@
+blkid_manadocs = files('blkid.8.adoc')
+
 cal_sources = files(
   'cal.c',
 )
+cal_manadocs = files('cal.1.adoc')
+
+enosys_manadocs = files('enosys.1.adoc')
 
 logger_sources = files(
   'logger.c',
 ) + \
   strutils_c + \
   strv_c
+logger_manadocs = files('logger.1.adoc')
 
 look_sources = files(
   'look.c',
 )
+look_manadocs = files('look.1.adoc')
 
 lastlog2_sources = files(
   'lastlog2.c',
 ) + \
   strutils_c
+lastlog2_manadocs = files('lastlog2.8.adoc')
 
 mcookie_sources = files(
   'mcookie.c',
 ) + \
   md5_c
+mcookie_manadocs = files('mcookie.1.adoc')
 
 namei_sources = files(
   'namei.c',
 ) + \
   strutils_c + \
   idcache_c
+namei_manadocs = files('namei.1.adoc')
 
 whereis_sources = files(
   'whereis.c',
 )
+whereis_manadocs = files('whereis.1.adoc')
 
 lslocks_sources = files(
   'lslocks.c',
 )
+lslocks_manadocs = files('lslocks.8.adoc')
 
 lsblk_sources = files(
   'lsblk.c',
@@ -43,20 +55,24 @@ lsblk_sources = files(
   'lsblk-devtree.c',
   'lsblk.h',
 )
+lsblk_manadocs = files('lsblk.8.adoc')
 
 uuidgen_sources = files(
   'uuidgen.c',
 )
+uuidgen_manadocs = files('uuidgen.1.adoc')
 
 uuidparse_sources = files(
   'uuidparse.c',
 )
+uuidparse_manadocs = files('uuidparse.1.adoc')
 
 uuidd_sources = files(
   'uuidd.c',
 ) + \
   monotonic_c + \
   timer_c
+uuidd_manadocs = files('uuidd.8.adoc')
 
 test_uuidd_sources = files(
   'test_uuidd.c',
@@ -136,28 +152,34 @@ blkid_sources = files(
 findfs_sources = files(
   'findfs.c',
 )
+findfs_manadocs = files('findfs.8.adoc')
 
 wipefs_sources = files(
   'wipefs.c',
 )
+wipefs_manadocs = files('wipefs.8.adoc')
 
 findmnt_sources = files(
   'findmnt.c',
   'findmnt-verify.c',
   'findmnt.h',
 )
+findmnt_manadocs = files('findmnt.8.adoc')
 
 kill_sources = files(
   'kill.c',
 )
+kill_manadocs = files('kill.1.adoc')
 
 rename_sources = files(
   'rename.c',
 )
+rename_manadocs = files('rename.1.adoc')
 
 getopt_sources = files(
   'getopt.c',
 )
+getopt_manadocs = files('getopt.1.adoc')
 
 if not get_option('build-getopt').disabled()
   install_data(
@@ -170,16 +192,19 @@ endif
 exch_sources = files(
   'exch.c',
 )
+exch_manadocs = files('exch.1.adoc')
 
 fincore_sources = files(
   'fincore.c',
 )
+fincore_manadocs = files('fincore.1.adoc')
 
 hardlink_sources = files(
   'hardlink.c',
 ) + \
   monotonic_c + \
   fileeq_c
+hardlink_manadocs = files('hardlink.1.adoc')
 
 cal_sources = files(
   'cal.c',
@@ -188,15 +213,19 @@ cal_sources = files(
 pipesz_sources = files(
   'pipesz.c',
 )
+pipesz_manadocs = files('pipesz.1.adoc')
 
 fadvise_sources = files(
   'fadvise.c',
 )
+fadvise_manadocs = files('fadvise.1.adoc')
 
 waitpid_sources = files(
   'waitpid.c',
 )
+waitpid_manadocs = files('waitpid.1.adoc')
 
 lsclocks_sources = files(
   'lsclocks.c',
 )
+lsclocks_manadocs = files('lsclocks.1.adoc')
diff --git a/pam_lastlog2/man/meson.build b/pam_lastlog2/man/meson.build
new file mode 100644 (file)
index 0000000..eb2dee7
--- /dev/null
@@ -0,0 +1 @@
+lib_pam_lastlog2_manadocs = files('pam_lastlog2.8.adoc')
index 12f3a6b211e614bf37241f2f160da3a913b5b272..99a6eced3a8039f32b51b7ecebc1c2e141bebf2e 100644 (file)
@@ -8,7 +8,9 @@ cc = meson.get_compiler('c')
 pkg = import('pkgconfig')
 lib_pam_lastlog2_sources = '''
   src/pam_lastlog2.c
-'''.split()  
+'''.split()
+
+subdir('man')
 
 pamlibdir = get_option('pamlibdir')
 if pamlibdir == ''
@@ -32,5 +34,5 @@ if build_pam_lastlog2
     install : build_liblastlog2,
     install_dir : pamlibdir,
   )
-  manadocs += ['pam_lastlog2/man/pam_lastlog2.8.adoc']
-endif  
+  manadocs += lib_pam_lastlog2_manadocs
+endif
diff --git a/schedutils/meson.build b/schedutils/meson.build
new file mode 100644 (file)
index 0000000..2ec05fe
--- /dev/null
@@ -0,0 +1,7 @@
+schedutils_manadocs = files(
+  'chrt.1.adoc',
+  'coresched.1.adoc',
+  'ionice.1.adoc',
+  'taskset.1.adoc',
+  'uclampset.1.adoc',
+)
index bf433f9f455a24a31e50c953989eb9eec31e0525..2fdcc6393e51d3a675378b1da0fae637106545f1 100644 (file)
@@ -5,132 +5,168 @@ hwclock_parse_date = bison_gen.process('hwclock-parse-date.y')
 lsmem_sources = files(
   'lsmem.c',
 )
+lsmem_manadocs = files('lsmem.1.adoc')
 
 chmem_sources = files(
   'chmem.c',
 )
+chmem_manadocs = files('chmem.8.adoc')
 
 choom_sources = files(
   'choom.c',
 )
+choom_manadocs = files('choom.1.adoc')
 
 ipcmk_sources = files(
   'ipcmk.c',
 )
+ipcmk_manadocs = files('ipcmk.1.adoc')
 
 ipcrm_sources = files(
   'ipcrm.c',
   'ipcutils.c',
   'ipcutils.h',
 )
+ipcrm_manadocs = files('ipcrm.1.adoc')
 
 ipcs_sources = files(
   'ipcs.c',
   'ipcutils.c',
   'ipcutils.h',
 )
+ipcs_manadocs = files('ipcs.1.adoc')
 
 rfkill_sources = files(
   'rfkill.c',
 )
+rfkill_manadocs = files('rfkill.8.adoc')
 
 renice_sources = files(
   'renice.c',
 )
+renice_manadocs = files('renice.1.adoc')
 
 setpgid_sources = files(
   'setpgid.c',
 )
+setpgid_manadocs = files('setpgid.1.adoc')
 
 setsid_sources = files(
   'setsid.c',
 )
+setsid_manadocs = files('setsid.1.adoc')
 
 readprofile_sources = files(
   'readprofile.c',
 )
+readprofile_manadocs = files('readprofile.8.adoc')
 
 tunelp_sources = files(
   'tunelp.c',
 )
+tunelp_manadocs = files('tunelp.8.adoc')
 
 fstrim_sources = files(
   'fstrim.c',
 )
+fstrim_manadocs = files('fstrim.8.adoc')
 
 dmesg_sources = files(
   'dmesg.c',
 ) + \
   monotonic_c + pager_c
+dmesg_manadocs = files('dmesg.1.adoc')
 
 ctrlaltdel_sources = files(
   'ctrlaltdel.c',
 )
+ctrlaltdel_manadocs = files('ctrlaltdel.8.adoc')
 
 fsfreeze_sources = files(
   'fsfreeze.c',
 )
+fsfreeze_manadocs = files('fsfreeze.8.adoc')
 
 blkdiscard_sources = files(
   'blkdiscard.c',
 ) + \
   monotonic_c
+blkdiscard_manadocs = files('blkdiscard.8.adoc')
 
 blkzone_sources = files(
   'blkzone.c',
 )
+blkzone_manadocs = files('blkzone.8.adoc')
 
 blkpr_sources = files(
   'blkpr.c',
 )
+blkpr_manadocs = files('blkpr.8.adoc')
 
 ldattach_sources = files(
   'ldattach.c',
 )
+ldattach_manadocs = files('ldattach.8.adoc')
 
 rtcwake_sources = files(
   'rtcwake.c',
 )
+rtcwake_manadocs = files('rtcwake.8.adoc')
 
 setarch_sources = files(
   'setarch.c',
 )
+setarch_manadocs = files('setarch.8.adoc')
 
 eject_sources = files(
   'eject.c',
 ) + \
   monotonic_c
+eject_manadocs = files('eject.1.adoc')
 
 losetup_sources = files(
   'losetup.c',
 )
+losetup_manadocs = files('losetup.8.adoc')
 
 zramctl_sources = files(
   'zramctl.c',
 ) + \
   ismounted_c
+zramctl_manadocs = files('zramctl.8.adoc')
 
 prlimit_sources = files(
   'prlimit.c',
 )
+prlimit_manadocs = files('prlimit.1.adoc')
 
 lsns_sources = files(
   'lsns.c',
 )
+lsns_manadocs = files('lsns.8.adoc')
+
+fstab_manadocs = files('fstab.5.adoc')
 
 mount_sources = files(
   'mount.c',
 )
+mount_manadocs = files(
+  'mount.8.adoc'
+)
 
 umount_sources = files(
   'umount.c',
 )
+umount_manadocs = files(
+  'umount.8.adoc'
+)
 swapon_sources = files(
   'swapon.c',
   'swapon-common.c',
   'swapon-common.h',
 ) + \
   swapprober_c
+swapon_manadocs = files('swapon.8.adoc')
 
 swapoff_sources = files(
   'swapoff.c',
@@ -149,40 +185,49 @@ lscpu_sources = files(
   'lscpu-arm.c',
   'lscpu-dmi.c',
 )
+lscpu_manadocs = files('lscpu.1.adoc')
 
 chcpu_sources = files(
   'chcpu.c',
 )
+chcpu_manadocs = files('chcpu.8.adoc')
 
 wdctl_sources = files(
   'wdctl.c',
 )
+wdctl_manadocs = files('wdctl.8.adoc')
 
 mountpoint_sources = files(
   'mountpoint.c',
 )
+mountpoint_manadocs = files('mountpoint.1.adoc')
 
 fallocate_sources = files(
   'fallocate.c',
 )
+fallocate_manadocs = files('fallocate.1.adoc')
 
 pivot_root_sources = files(
   'pivot_root.c',
 )
+pivot_root_manadocs = files('pivot_root.8.adoc')
 
 switch_root_sources = files(
   'switch_root.c',
 )
+switch_root_manadocs = files('switch_root.8.adoc')
 
 unshare_sources = files(
   'unshare.c',
 ) + \
     exec_shell_c
+unshare_manadocs = files('unshare.1.adoc')
 
 nsenter_sources = files(
   'nsenter.c',
 ) + \
     exec_shell_c
+nsenter_manadocs = files('nsenter.1.adoc')
 
 setpriv_sources = files(
   'setpriv.c',
@@ -190,24 +235,28 @@ setpriv_sources = files(
 if LINUX and conf.get('HAVE_LINUX_LANDLOCK_H').to_string() == '1'
   setpriv_sources += files('setpriv-landlock.c')
 endif
+setpriv_manadocs = files('setpriv.1.adoc')
 
 flock_sources = files(
   'flock.c',
 ) + \
   monotonic_c + \
   timer_c
+flock_manadocs = files('flock.1.adoc')
 
 lsipc_sources = files(
   'lsipc.c',
   'ipcutils.c',
   'ipcutils.h',
 )
+lsipc_manadocs = files('lsipc.1.adoc')
 
 lsirq_sources = files(
   'lsirq.c',
   'irq-common.c',
   'irq-common.h',
 )
+lsirq_manadocs = files('lsirq.1.adoc')
 
 irqtop_sources = files(
   'irqtop.c',
@@ -215,6 +264,7 @@ irqtop_sources = files(
   'irq-common.h',
 ) + \
     monotonic_c
+irqtop_manadocs = files('irqtop.1.adoc')
 
 hwclock_sources = [
   'sys-utils/hwclock.c',
@@ -233,6 +283,11 @@ if LINUX
   ]
 endif
 
+hwclock_manadocs = files(
+  'adjtime_config.5.adoc',
+  'hwclock.8.adoc',
+)
+
 if systemd.found()
   fstrim_service = configure_file(
     input : 'fstrim.service.in',
index f93ee943254a8d456ce41ee088064b300f3e2a72..dca399016d760c657593609562f2d710c1cc2995 100644 (file)
@@ -3,6 +3,7 @@ script_sources = files(
 ) + \
   pty_session_c + \
   monotonic_c
+script_manadocs = files('script.1.adoc')
 
 scriptlive_sources = files(
   'scriptlive.c',
@@ -11,31 +12,38 @@ scriptlive_sources = files(
 ) + \
   pty_session_c + \
   monotonic_c
+scriptlive_manadocs = files('scriptlive.1.adoc')
 
 scriptreplay_sources = files(
   'scriptreplay.c',
   'script-playutils.c',
   'script-playutils.h',
 )
+scriptreplay_manadocs = files('scriptreplay.1.adoc')
 
 agetty_sources = files(
   'agetty.c',
 )
+agetty_manadocs = files('agetty.8.adoc')
 
 setterm_sources = files(
   'setterm.c',
 )
+setterm_manadocs = files('setterm.1.adoc')
 
 mesg_sources = files(
   'mesg.c',
 )
+mesg_manadocs = files('mesg.1.adoc')
 
 wall_sources = files(
   'wall.c',
   'ttymsg.c',
   'ttymsg.h',
 )
+wall_manadocs = files('wall.1.adoc')
 
 write_sources = files(
   'write.c',
 )
+write_manadocs = files('write.1.adoc')
diff --git a/tests/.gitignore b/tests/.gitignore
deleted file mode 100644 (file)
index d937c7f..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-diff
-output
index 4a25fa4783281653b60ee0296fefcd6f25bf5a51..c7498fc5489af2886f16ee8541de65dc15590087 100644 (file)
@@ -1,42 +1,52 @@
 bits_sources = files(
   'bits.c',
 )
+bits_manadocs = files('bits.1.adoc')
 
 col_sources = files(
   'col.c',
 )
+col_manadocs = files('col.1.adoc')
 
 colcrt_sources = files(
   'colcrt.c',
 )
+colcrt_manadocs = files('colcrt.1.adoc')
 
 colrm_sources = files(
   'colrm.c',
 )
+colrm_manadocs = files('colrm.1.adoc')
 
 rev_sources = files(
   'rev.c',
 )
+rev_manadocs = files('rev.1.adoc')
 
 column_sources = files(
   'column.c',
 )
+column_manadocs = files('column.1.adoc')
 
 line_sources = files(
   'line.c',
 )
+line_manadocs = files('line.1.adoc')
 
 pg_sources = files(
   'pg.c',
 )
+pg_manadocs = files('pg.1.adoc')
 
 ul_sources = files(
   'ul.c',
 )
+ul_manadocs = files('ul.1.adoc')
 
 more_sources = files(
   'more.c',
 )
+more_manadocs = files('more.1.adoc')
 
 hexdump_sources = files(
   'hexdump.c',
@@ -45,3 +55,4 @@ hexdump_sources = files(
   'hexdump-display.c',
   'hexdump-parse.c',
 )
+hexdump_manadocs = files('hexdump.1.adoc')