# used only when doing release builds.
#-----------------------------------------------------------------
+# auto-determine distro (module) name based on directory name
+DISTRO=$(notdir $(shell pwd))
+
# stylesheet for generating release notes
DOC-LINK-STYLE= $(DOCBOOK_CVS)/xsl/docsrc/doc-link-docbook.xsl
# browser to use for making text version of release notes
BROWSER=w3m
BROWSER_OPTS=-dump
+# determine RELVER automatically by first figuring out if VERSION
+# file is an XSL stylesheet or not, and then grabbing the version
+# number from that file
+RELVER := $(shell \
+ if grep "<xsl:stylesheet" VERSION >/dev/null; then \
+ grep "Version>.\+<" VERSION \
+ | sed 's/^[^<]*<fm:Version>\(.\+\)<\/fm:Version>$$/\1/' \
+ | tr -d "\n"; \
+ else cat VERSION; \
+ fi \
+)
+
# the following are used to determine what version to compare to
# in order to create the WhatsNew file
NEXTVER=