summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2006-01-15 22:46:50 +0000
committerPaul W. Frields <stickster@gmail.com>2006-01-15 22:46:50 +0000
commit8f6bfaa237fc2dc24cc836cd2e94649ed370a8bf (patch)
treef4da88d858de28cae878bc1c05c060148b6e2c12
parent8178b40e0463f50acf7b5a31814096a54fa229c3 (diff)
downloadfedora-doc-utils-8f6bfaa237fc2dc24cc836cd2e94649ed370a8bf.tar.gz
fedora-doc-utils-8f6bfaa237fc2dc24cc836cd2e94649ed370a8bf.tar.xz
fedora-doc-utils-8f6bfaa237fc2dc24cc836cd2e94649ed370a8bf.zip
Make it possible to use alternate rpm-info.xml file if needed
-rw-r--r--Makefile.common16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common
index 89a5f24..dff0878 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -52,6 +52,9 @@ endif
ifeq (${HTMLCSSEXTRA},)
HTMLCSSEXTRA = ${FDPDIR}/docs-common/images/watermark-${LANG}.png
endif
+ifeq (${RPMINFO},)
+RPMINFO = ${PWD}/rpm-info.xml
+endif
#########################################################################
# Define a macro to locate xmlto(1) so we can choose a specific version
# by "make XMLTO=/path/to/xmlto", if we so desire.
@@ -193,13 +196,13 @@ diff::
# "rpm-info.xml" file.
#
define fdp-info_template
-fdp-info-$(1).xml:: rpm-info.xml
+fdp-info-$(1).xml:: $(RPMINFO)
${XSLTPROC} --stringparam lang $(1) \
--stringparam doctype $(shell \
${FDPDIR}/docs-common/packaging/doctype \
$(DOCBASE)-$(1).xml \
) ${FDPDIR}/docs-common/packaging/bookinfo.xsl \
- rpm-info.xml | \
+ $(RPMINFO) | \
$(XMLFORMAT) $(XMLFOPTS) > fdp-info-$(1).xml
endef
#
@@ -208,5 +211,14 @@ $(foreach LANG,${LANGUAGES},$(eval $(call fdp-info_template,${LANG})))
fdp-info:: $(foreach LANG,${LANGUAGES},fdp-info-$(LANG).xml)
#
#########################################################################
+# Make a new changelog entry for an existing rpm-info.xml file.
+
+clog:: $(RPMINFO)
+ XMLFORMAT="$(XMLFORMAT)" XSLTPROC="$(XSLTPROC)" \
+ ${FDPBIN}/insert-changelog $(RPMINFO).clog
+ mv -b $(RPMINFO).clog $(RPMINFO)
+
+#
+#########################################################################
# End of Makefile.common
#########################################################################