From: Michael Smith Date: Fri, 31 Aug 2007 16:24:14 +0000 (+0000) Subject: Added support for profiling release notes based on release type. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e73a8b440618fe57e88bbccd3b66b369c50a178;p=docbook-dsssl Added support for profiling release notes based on release type. --- diff --git a/releasetools/Targets.mk b/releasetools/Targets.mk index e5e7a4e39..928cf5f7d 100644 --- a/releasetools/Targets.mk +++ b/releasetools/Targets.mk @@ -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 diff --git a/releasetools/Variables.mk b/releasetools/Variables.mk index 79b0afd6c..ec5924586 100644 --- a/releasetools/Variables.mk +++ b/releasetools/Variables.mk @@ -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=