summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2006-06-26 23:33:35 +0000
committerPaul W. Frields <stickster@gmail.com>2006-06-26 23:33:35 +0000
commit0d94cdd45b7959df6ade1e09968f31d2004b0013 (patch)
treeea278406329b02e8ddd805154b39b195f7b3010e
parentb17fd8b43f556f11f1ed9b6c9a57b5bd4d9e16e0 (diff)
downloadfedora-doc-utils-0d94cdd45b7959df6ade1e09968f31d2004b0013.tar.gz
fedora-doc-utils-0d94cdd45b7959df6ade1e09968f31d2004b0013.tar.xz
fedora-doc-utils-0d94cdd45b7959df6ade1e09968f31d2004b0013.zip
Allow document local fdp-entities.ent files to build directly from the
XML files in docs-common/common/entities/ . This means we can get rid of all those confusing extra .ent files and do away with symlinking. Tommy gives this approach a thumbs-up.
-rw-r--r--Makefile.common7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common
index d24ad42..ea038bb 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -857,9 +857,12 @@ showvars::
#########################################################################
define FDP_ENTITIES_template
-${1}/$${FDP_ENTITIES}:: ${FDPDIR}/docs-common/common/entities/entities-${1}.ent
+${1}/$${FDP_ENTITIES}:: ${FDPDIR}/docs-common/common/entities/entities-${1}.xml
mkdir -p ${1}
- ln -s -f $$< $$@
+ xsltproc --stringparam FDPCOMMONDIR "NONE" \
+ $${FDPDIR}/docs-common/common/entities/entities.xsl \
+ $${FDPDIR}/docs-common/common/entities/entities-${1}.xml \
+ >$$@.tmp && move-if-change $$@.tmp $$@
clean::
${RM} ${1}/$${FDP_ENTITIES}