]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
man pages: consolidate libsmartcols environment variables
authorKarel Zak <kzak@redhat.com>
Tue, 24 Feb 2026 08:54:12 +0000 (09:54 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 24 Feb 2026 11:57:34 +0000 (12:57 +0100)
Introduce man-common/env-smartcols.adoc to describe all libsmartcols
environment variables (LIBSMARTCOLS_DEBUG, LIBSMARTCOLS_DEBUG_PADDING,
LIBSMARTCOLS_JSON) in one place.

Replace duplicated LIBSMARTCOLS_DEBUG descriptions in cfdisk, fdisk,
sfdisk, findmnt, lsblk, and column man pages with an include of the
new common file.

Addresses: https://github.com/util-linux/util-linux/issues/3971
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/cfdisk.8.adoc
disk-utils/fdisk.8.adoc
disk-utils/sfdisk.8.adoc
man-common/Makemodule.am
man-common/env-smartcols.adoc [new file with mode: 0644]
man-common/meson.build
misc-utils/findmnt.8.adoc
misc-utils/lsblk.8.adoc
po-man/po4a.cfg
text-utils/column.1.adoc

index 33bbd4af6c0d4cf4fca542ed79fda0a3f49a403d..bb2c1dbc69fd010da4b9c762455862553a16cb86 100644 (file)
@@ -137,11 +137,7 @@ enables libfdisk debug output.
 *LIBBLKID_DEBUG*=all::
 enables libblkid debug output.
 
-*LIBSMARTCOLS_DEBUG*=all::
-enables libsmartcols debug output.
-
-*LIBSMARTCOLS_DEBUG_PADDING*=on::
-use visible padding characters. Requires enabled *LIBSMARTCOLS_DEBUG*.
+include::man-common/env-smartcols.adoc[]
 
 *LOCK_BLOCK_DEVICE*=<mode>::
 use exclusive BSD lock. The mode is "1" or "0". See *--lock* for more details.
index 7f2f6a42f1a234cfac2932f5caff5e6839693153..d666bc83a57d8cf7ff894de1c6f0883aa3d59f6b 100644 (file)
@@ -210,11 +210,7 @@ enables libfdisk debug output.
 *LIBBLKID_DEBUG*=all::
 enables libblkid debug output.
 
-*LIBSMARTCOLS_DEBUG*=all::
-enables libsmartcols debug output.
-
-*LIBSMARTCOLS_DEBUG_PADDING*=on::
-use visible padding characters.
+include::man-common/env-smartcols.adoc[]
 
 *LOCK_BLOCK_DEVICE*=<mode>::
 use exclusive BSD lock. The mode is "1" or "0". See *--lock* for more details.
index 781b4cbf1532344325ef4f4a524b4d47b2b4fc79..5b9613ad95220f9c80f25783b5844218daf37b86 100644 (file)
@@ -440,8 +440,8 @@ enables *sfdisk* debug output.
 enables libfdisk debug output.
 *LIBBLKID_DEBUG*=all::
 enables libblkid debug output.
-*LIBSMARTCOLS_DEBUG*=all::
-enables libsmartcols debug output.
+include::man-common/env-smartcols.adoc[]
+
 *LOCK_BLOCK_DEVICE*=<mode>::
 use exclusive BSD lock. The mode is "1" or "0". See *--lock* for more details.
 
index f0db0456fc1d9e4904011376df7c20a746523ed6..8fa7be50ee62d63f499d4fcd87fa95294a04e25b 100644 (file)
@@ -9,4 +9,5 @@ ADOCFILES_COMMON += \
              man-common/hyperlink.adoc \
              man-common/in-bytes.adoc \
              man-common/manpage-stub.adoc \
+             man-common/env-smartcols.adoc \
              man-common/translation.adoc
diff --git a/man-common/env-smartcols.adoc b/man-common/env-smartcols.adoc
new file mode 100644 (file)
index 0000000..d5c3431
--- /dev/null
@@ -0,0 +1,11 @@
+*LIBSMARTCOLS_DEBUG*=all::
+enables libsmartcols debug output.
+
+*LIBSMARTCOLS_DEBUG_PADDING*=on::
+use visible padding characters.
+
+*LIBSMARTCOLS_JSON*=compact|lines::
+Controls JSON output format when using *--json*. Supported values are
+*compact* for JSON output with minimal whitespace, and *lines* for JSON Lines
+format (one JSON object per line). If unset or set to any other value,
+pretty-printed JSON is used.
index 7e86f1f945ed9e38460631a674eb5fa8dbc0d87e..1111ebfb4e845cd9ac1e3b4c0d3bc04a65db9445 100644 (file)
@@ -9,5 +9,6 @@ man_common_adocs = files(
   'hyperlink.adoc',
   'in-bytes.adoc',
   'manpage-stub.adoc',
+  'env-smartcols.adoc',
   'translation.adoc',
 )
index eba34042a4f09e8a1b0fe944c15d077676554c64..38220fb2472ecf3f169eedd9ebce3a2c936d6567 100644 (file)
@@ -224,11 +224,7 @@ overrides the default location of the _mtab_ file
 *LIBMOUNT_DEBUG*=all::
 enables libmount debug output
 
-*LIBSMARTCOLS_DEBUG*=all::
-enables libsmartcols debug output
-
-*LIBSMARTCOLS_DEBUG_PADDING*=on::
-use visible padding characters.
+include::man-common/env-smartcols.adoc[]
 
 == EXAMPLES
 
index 4fc6cc6b566078da88e43df6806afec29fcfd484..4071411f270aac1e26111a114fb1d6b9bd50fe9d 100644 (file)
@@ -228,11 +228,7 @@ enables *libblkid* debug output.
 *LIBMOUNT_DEBUG*=all::
 enables *libmount* debug output.
 
-*LIBSMARTCOLS_DEBUG*=all::
-enables *libsmartcols* debug output.
-
-*LIBSMARTCOLS_DEBUG_PADDING*=on::
-use visible padding characters.
+include::man-common/env-smartcols.adoc[]
 
 *LSBLK_COLUMNS*=::
 specifies a comma-separated list of output columns to print. All columns listed by *--list-columns* can be used.
index b888e694f2ada7234e6f62654bd04a290b14720c..d49493fc596114b88d4839384ff78b1cda576868 100644 (file)
@@ -4,6 +4,7 @@
 [type:asciidoc] ../man-common/annotate.adoc      $lang:$lang/man-common/annotate.adoc    opt:"--keep 0"
 [type:asciidoc] ../man-common/bugreports.adoc    $lang:$lang/man-common/bugreports.adoc    opt:"--keep 0"
 [type:asciidoc] ../man-common/colors.adoc        $lang:$lang/man-common/colors.adoc        opt:"--keep 0"
+[type:asciidoc] ../man-common/env-smartcols.adoc $lang:$lang/man-common/env-smartcols.adoc opt:"--keep 0"
 [type:asciidoc] ../man-common/footer-config.adoc $lang:$lang/man-common/footer-config.adoc opt:"--keep 0"
 [type:asciidoc] ../man-common/footer-lib.adoc    $lang:$lang/man-common/footer-lib.adoc    opt:"--keep 0"
 [type:asciidoc] ../man-common/footer.adoc        $lang:$lang/man-common/footer.adoc        opt:"--keep 0"
index b17fb199a4a490c98912ebf56e43fa0818889a36..e20f8ecbf80e5d94793f396a2cd665f3a93f3fd7 100644 (file)
@@ -255,15 +255,7 @@ will be colorized by direct color names.
 *COLUMNS*::
 is used to determine the size of the screen if no other information is available.
 
-*LIBSMARTCOLS_JSON*::
-Controls JSON output format when using *--json*. Supported values:
-+
-*compact*::
-Output JSON in compact form (minified, minimal whitespace).
-*lines*::
-Output in JSON Lines format (one JSON object per line).
-+
-If unset or set to any other value, pretty-printed JSON is used.
+include::man-common/env-smartcols.adoc[]
 
 == HISTORY