gbranden pushed a commit to branch master
in repository groff.
commit 16d8c76f0b545b42e9cc2a6c020a2912c7276f32
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Dec 20 21:46:05 2025 -0600
[chem]: Simplify build.
The README files no longer contain '@g@' sequences, so they no longer
require build-time processing.
* contrib/chem/README.txt:
* contrib/chem/examples/README.txt:
* contrib/chem/examples/122/README.txt: Rename these...
* contrib/chem/README:
* contrib/chem/examples/README:
* contrib/chem/examples/122/README: ...to these.
* contrib/chem/chem.am (EXTRA_DIST): Ship the suffixless files instead
of their now-nonexistent suffixed counterparts.
(contrib/chem/README)
(contrib/chem/examples/README)
(contrib/chem/examples/122/README): Drop target rules for creating
these files now that they already exist in the source tree.
(CHEM_GENEXAMPLES, nodist_chemexample_DATA)
nodist_chemexample122_DATA): Drop now-unneeded macro definitions.
(CHEM_EXAMPLES): Add "README" file.
(install_chem_extra): Update "lazy" `for` loop to install "122/README"
file as well, not just the files ending in `.chem`.
(MOSTLYCLEANFILES): Drop now-unneeded macro appendment.
---
contrib/chem/ChangeLog | 26 ++++++++++++++++++++++++
contrib/chem/{README.txt => README} | 0
contrib/chem/chem.am | 26 +++++-------------------
contrib/chem/examples/122/{README.txt => README} | 0
contrib/chem/examples/{README.txt => README} | 0
5 files changed, 31 insertions(+), 21 deletions(-)
diff --git a/contrib/chem/ChangeLog b/contrib/chem/ChangeLog
index 2f3ad24da..1a79db764 100644
--- a/contrib/chem/ChangeLog
+++ b/contrib/chem/ChangeLog
@@ -1,3 +1,29 @@
+2025-12-20 G. Branden Robinson <[email protected]>
+
+ Our README files no longer contain '@g@' sequences, so they no
+ longer require build-time processing.
+
+ * README.txt:
+ * examples/README.txt:
+ * examples/122/README.txt: Rename these...
+ * README:
+ * examples/README:
+ * examples/122/README: ...to these.
+ * chem.am (EXTRA_DIST): Ship the suffixless files instead of
+ their now-nonexistent suffixed counterparts.
+ (contrib/chem/README)
+ (contrib/chem/examples/README)
+ (contrib/chem/examples/122/README): Drop target rules for
+ creating these files now that they already exist in the source
+ tree.
+ (CHEM_GENEXAMPLES, nodist_chemexample_DATA)
+ nodist_chemexample122_DATA): Drop now-unneeded macro
+ definitions.
+ (CHEM_EXAMPLES): Add "README" file.
+ (install_chem_extra): Update "lazy" `for` loop to install
+ "122/README" file as well, not just the files ending in `.chem`.
+ (MOSTLYCLEANFILES): Drop now-unneeded macro appendment.
+
2025-12-18 G. Branden Robinson <[email protected]>
* GPLv2: New file.
diff --git a/contrib/chem/README.txt b/contrib/chem/README
similarity index 100%
rename from contrib/chem/README.txt
rename to contrib/chem/README
diff --git a/contrib/chem/chem.am b/contrib/chem/chem.am
index 4e8464f88..9ed31a7f7 100644
--- a/contrib/chem/chem.am
+++ b/contrib/chem/chem.am
@@ -28,8 +28,8 @@ CHEMTMACFILES = $(chem_srcdir)/chem.pic
chemtmacdir = $(tmacdir)
dist_chemtmac_DATA = $(CHEMTMACFILES)
-CHEM_GENEXAMPLES = contrib/chem/examples/README
CHEM_EXAMPLES = \
+ contrib/chem/examples/README \
contrib/chem/examples/atp.chem \
contrib/chem/examples/cholesterin.chem \
contrib/chem/examples/ethamivan.chem \
@@ -40,38 +40,22 @@ CHEM_EXAMPLES = \
# Files installed in $(exampledir)/chem
chemexampledir = $(exampledir)/chem
-nodist_chemexample_DATA = $(CHEM_GENEXAMPLES)
dist_chemexample_DATA = $(CHEM_EXAMPLES)
# Files installed in $(exampledir)/chem/122. All the .chem files in 122
# are lazily installed by the local install target.
chemexample122dir = $(chemexampledir)/122
-nodist_chemexample122_DATA = contrib/chem/examples/122/README
EXTRA_DIST += \
contrib/chem/ChangeLog \
contrib/chem/GPLv2 \
- contrib/chem/README.txt \
+ contrib/chem/README \
contrib/chem/chem.1.man \
contrib/chem/chem.pic \
contrib/chem/chem.pl \
- contrib/chem/examples/122/README.txt \
- contrib/chem/examples/README.txt
+ contrib/chem/examples/122/README \
+ contrib/chem/examples/README
man1_MANS += contrib/chem/chem.1
-MOSTLYCLEANFILES += $(CHEM_GENEXAMPLES) $(nodist_chemexample122_DATA) \
- contrib/chem/README
-
-contrib/chem/README: $(chem_srcdir)/README.txt
- $(AM_V_GEN)$(MKDIR_P) contrib/chem/ \
- && sed -e "s|[@]g[@]|$(g)|g" $? >$@
-
-contrib/chem/examples/README: $(chem_srcdir)/examples/README.txt
- $(AM_V_GEN)$(MKDIR_P) contrib/chem/examples \
- && sed -e "s|[@]g[@]|$(g)|g" $? >$@
-
-contrib/chem/examples/122/README: $(chem_srcdir)/examples/122/README.txt
- $(AM_V_GEN)$(MKDIR_P) contrib/chem/examples/122 \
- && sed -e "s|[@]g[@]|$(g)|g" $? >$@
chem: $(chem_srcdir)/chem.pl $(SH_DEPS_SED_SCRIPT)
$(AM_V_GEN)$(RM) $@ \
@@ -90,7 +74,7 @@ install-data-local: install_chem_extra
install_chem_extra:
-test -d $(DESTDIR)$(chemexample122dir) \
|| $(mkinstalldirs) $(DESTDIR)$(chemexample122dir);
- for i in $(chem_srcdir)/examples/122/*.chem; do \
+ for i in $(chem_srcdir)/examples/122/*; do \
n=`echo $$i | sed 's|$(chem_srcdir)/examples/122/||g'`; \
$(INSTALL_DATA) $$i $(DESTDIR)$(chemexample122dir)/$$n; \
done
diff --git a/contrib/chem/examples/122/README.txt
b/contrib/chem/examples/122/README
similarity index 100%
rename from contrib/chem/examples/122/README.txt
rename to contrib/chem/examples/122/README
diff --git a/contrib/chem/examples/README.txt b/contrib/chem/examples/README
similarity index 100%
rename from contrib/chem/examples/README.txt
rename to contrib/chem/examples/README
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit