gbranden pushed a commit to branch master
in repository groff.

commit 5d777599d577f13f129831b5628844036bacde20
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Dec 29 14:05:44 2025 -0600

    [chem]: Simplify `--version` output.
    
    * contrib/chem/chem.pl Drop `copyright` scalar; see below.  Bump
      revision or "micro" portion of version number.
    
      (version): Stop reporting copyright and license notice after version
      disclosure.  No other program groff installs, not even others authored
      by Bernd Warken, handles `--version` in this way, except for the
      namesake program groff(1) itself.
    
    nroff(1) and pdfmom(1), which _wrap_ groff(1), do cause emission of
    these notices when given a `--version` argument, but only by dint of
    their function as wrappers.
    
    I see no reason to similarly change `groff --version` output; _as_ the
    namesake of the project/package/distribution, a user might reasonably
    seek to discover the provenance of an installed groff via that means.
---
 contrib/chem/ChangeLog |  9 +++++++++
 contrib/chem/chem.pl   | 14 ++++----------
 2 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/contrib/chem/ChangeLog b/contrib/chem/ChangeLog
index a4cf2a512..ad2dc6af3 100644
--- a/contrib/chem/ChangeLog
+++ b/contrib/chem/ChangeLog
@@ -1,3 +1,12 @@
+2025-12-29  G. Branden Robinson <[email protected]>
+
+       * chem.pl: Drop `copyright` scalar; see below.  Bump revision or
+       "micro" portion of version number.
+       (version): Stop reporting copyright and license notice
+       after version disclosure.  No other program groff installs, not
+       even others authored by Bernd Warken, handles `--version` in
+       this way, except for the namesake program groff(1) itself.
+
 2025-12-29  G. Branden Robinson <[email protected]>
 
        * examples/122: Rename this directory...
diff --git a/contrib/chem/chem.pl b/contrib/chem/chem.pl
index 856874c1e..684c502eb 100644
--- a/contrib/chem/chem.pl
+++ b/contrib/chem/chem.pl
@@ -1,9 +1,9 @@
 #!@PERL@
 
 # chem - a groff preprocessor for producing chemical structure diagrams
-
-my $copyright = 'Copyright 2006-2014, 2022'
-                . ' Free Software Foundation, Inc.';
+#
+# Copyright 2006-2014, 2022 Free Software Foundation, Inc.
+#
 # Written by Bernd Warken <[email protected]>.
 #
 # This file is part of chem.
@@ -27,7 +27,7 @@ my $copyright = 'Copyright 2006-2014, 2022'
 # settings
 ########################################################################
 
-my $chem_version = '1.0.6';
+my $chem_version = '1.0.7';
 my $groff_version = 'DEVELOPMENT';
 
 require v5.6;
@@ -1215,12 +1215,6 @@ EOF
 sub version {
   print <<EOF;
 $prog (groff $groff_version) $chem_version
-$copyright
-License GPLv2: GNU GPL version 2
-<https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html>
-This is free software: you are free to change and redistribute it.
-There is NO WARRANTY, to the extent permitted by law.
-EOF
 }
 
 1;

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to