]> granicus.if.org Git - docbook-dsssl/commitdiff
Added support for auto-recognizing DocBook element names in
authorMichael Smith <xmldoc@users.sourceforge.net>
Sun, 26 Mar 2006 01:56:19 +0000 (01:56 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sun, 26 Mar 2006 01:56:19 +0000 (01:56 +0000)
commit descriptions and marking them up with <tag>foo</tag>
instances.

releasetools/Targets.mk
releasetools/Variables.mk

index 0c8b4c6c1bc7965f3805fc89974fcb97305cd89c..d2c9c282a602b093d28b426ae630fba353977645 100644 (file)
@@ -30,6 +30,11 @@ NEWS.xml: ChangeLog.xml
        $(XSLT) $< $(NEWS_MAKER) $@ \
        latest-tag="'$(shell cat LatestTag)'" \
        release-version="'$(RELVER)'"
+       for element in \
+         $(shell $(XSLT) $(DOCBOOK_RNG) $(GET_ELEMENT_NAMES) | sort | uniq); \
+       do $(SED) $(SED_OPTS) -i \
+         "s/\([^<\/A-Za-z0-9_\.\-]\)\($$element\)\([^A-Za-z0-9_\.\-]\)/\1<FOOM>\2<\/FOOM>\3/g" $@; done; \
+       $(SED) $(SED_OPTS) -i s/FOOM/tag/g $@
 
 NEWS.html: NEWS.xml
        $(XSLT) $< $(DOC-LINK-STYLE) $@
index 2ee82a5b9887fe1656b14a17a8905cd3fe8e8429..e134c91e1d0bacf0cde9ceaf5857e0ab31af5e98 100644 (file)
@@ -34,6 +34,10 @@ NEWS_MAKER=docsrc/release-notes.xsl
 # stylesheet used for determining the latest cvs tag in cvs log
 GET_LATEST_TAG=docsrc/get-latest-tag.xsl
 
+GET_ELEMENT_NAMES=docsrc/get-element-names.xsl
+
+DOCBOOK_RNG=../docbook/relaxng/docbook/docbook.rng
+
 # stylesheet for generating FO version of release notes
 FO-STYLE=$(DOCBOOK_CVS)/xsl/fo/docbook.xsl