]> granicus.if.org Git - docbook-dsssl/commitdiff
Added support for profiling release notes based on release type.
authorMichael Smith <xmldoc@users.sourceforge.net>
Fri, 31 Aug 2007 16:24:14 +0000 (16:24 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Fri, 31 Aug 2007 16:24:14 +0000 (16:24 +0000)
releasetools/Targets.mk
releasetools/Variables.mk

index e5e7a4e39ad15849b1d82911c0aa2b8cc39fc329..928cf5f7de6aa358982394705a0a527f914a61e7 100644 (file)
@@ -9,7 +9,7 @@ debug:
 
 RELEASE-NOTES.html: RELEASE-NOTES.xml NEWS.xml
        $(XINCLUDE) $< > RELEASE-NOTES-TMP.xml
-       $(XSLT) RELEASE-NOTES-TMP.xml $(DOC_LINK_STYLE) $@ \
+       $(XSLT) profile.condition $(RELEASE_TYPE) RELEASE-NOTES-TMP.xml $(DOC_LINK_STYLE) $@ \
        doc-baseuri="$(DOC_BASEURI)"
        $(RM) RELEASE-NOTES-TMP.xml
 
index 79b0afd6ca924f6719104bdc6cad51e26c7e3679..ec59245860c911228b5ec0fcb71b2b97d520a7ae 100644 (file)
@@ -127,6 +127,16 @@ RELVER := $(shell \
 )
 ZIPVER=$(RELVER)
 
+ifeq (snapshot,$(findstring snapshot,$(RELVER)))
+  RELEASE_TYPE=snapshot
+else
+ifeq (.0,$(findstring .0,$(RELVER)))
+  RELEASE_TYPE=dot-zero
+else
+  RELEASE_TYPE=dot-one-plus
+endif
+endif
+
 # the following are used to determine what version to compare to
 # in order to create the WhatsNew file
 NEXTVER=