--- /dev/null
+# this file is a -*- makefile -*- snippet
+# targets in this file are used to build and upload the DocBook 5
+# version of the DocBook Project XSL Stylesheets
+
+# $Id$
+
+debug:
+
+freshmeat5:
+ifeq ($(SFRELID),)
+ @echo "You must specify the sourceforge release identifier in SFRELID"
+ exit 1
+else
+ $(XSLT) VERSION VERSION $(TMP)/fm-docbook5-$(DISTRO) sf-relid=$(SFRELID)
+ grep -v "<?xml" $(TMP)/fm-docbook5-$(DISTRO) | freshmeat-submit $(FMGO)
+endif
+
+zip5: zip
+ rm -rf $(TMP)/docbook-$(DISTRO)-$(ZIPVER)
+ rm -rf $(TMP)/docbook5-$(DISTRO)-$(ZIPVER)
+ $(RM) $(TMP)/docbook5-$(DISTRO)-$(ZIPVER).tar.gz
+ $(RM) $(TMP)/docbook5-$(DISTRO)-$(ZIPVER).tar.bz2
+ $(RM) $(TMP)/docbook5-$(DISTRO)-$(ZIPVER).zip
+ (cd $(TMP); \
+ unzip $(TMP)/docbook-$(DISTRO)-$(ZIPVER).zip)
+ $(DOCBOOK_SVN)/releasetools/makedb5xsl \
+ $(TMP)/docbook-$(DISTRO)-$(ZIPVER) \
+ $(TMP)/docbook5-$(DISTRO)-$(ZIPVER)
+
+# change branch info
+ sed -i "s/^\(.*\)<fm:Branch>XSL Stylesheets<\/fm:Branch>$$/\1<fm:Branch>v5 XSL Stylesheets<\/fm:Branch>/" \
+ $(TMP)/docbook5-$(DISTRO)-$(ZIPVER)/VERSION
+
+# change distro name
+ sed -i "s/^\(.*\)<xsl:param name=\"DistroName\">docbook-xsl<\/xsl:param>$$/\1<xsl:param name=\"DistroName\">docbook5-xsl<\/xsl:param>/" \
+ $(TMP)/docbook5-$(DISTRO)-$(ZIPVER)/VERSION
+
+# repair perms
+ chmod 755 $(TMP)/docbook5-$(DISTRO)-$(ZIPVER)/fo/pdf2index
+ chmod 755 $(TMP)/docbook5-$(DISTRO)-$(ZIPVER)/install.sh
+
+# gzip/bzip/zip it
+ umask 022; cd $(TMP) && $(TAR) cf$(TARFLAGS) - $(TMP)/docbook5-$(DISTRO)-$(ZIPVER) \
+ | gzip > $(TMP)/docbook5-$(DISTRO)-$(ZIPVER).tar.gz
+ umask 022; cd $(TMP) && $(TAR) cf$(TARFLAGS) - $(TMP)/docbook5-$(DISTRO)-$(ZIPVER) \
+ | bzip2 > docbook5-$(DISTRO)-$(ZIPVER).tar.bz2
+ umask 022; cd $(TMP) && $(ZIP) $(ZIPFLAGS) $(TMP)/docbook5-$(DISTRO)-$(ZIPVER).zip \
+ $(TMP)/docbook5-$(DISTRO)-$(ZIPVER)
+
+install5: zip5
+ifeq ($(SF_USERNAME),)
+ $(error You must specify a value for $$SF_USERNAME)
+else
+ -$(FTP) $(FTP_OPTS) "mput -O $(SF_UPLOAD_DIR) $(TMP)/docbook5-$(DISTRO)-*-$(ZIPVER).*; quit" $(SF_UPLOAD_HOST)
+ -$(FTP) $(FTP_OPTS) "mput -O $(SF_UPLOAD_DIR) $(TMP)/docbook5-$(DISTRO)-$(ZIPVER).*; quit" $(SF_UPLOAD_HOST)
+ $(SCP) $(SCP_OPTS) $(TMP)/docbook5-$(DISTRO)-$(ZIPVER).tar.bz2 $(SF_USERNAME)@$(PROJECT_HOST):$(RELEASE_DIR)/$(DISTRO)/
+ $(SCP) $(SCP_OPTS) $(TMP)/docbook5-$(DISTRO)-*-$(ZIPVER).tar.bz2 $(SF_USERNAME)@$(PROJECT_HOST):$(RELEASE_DIR)/$(DISTRO)/
+ $(SSH) $(SSH_OPTS)-l $(SF_USERNAME) $(PROJECT_HOST) \
+ "(\
+ umask 002; \
+ cd $(RELEASE_DIR)/$(DISTRO); \
+ rm -rf $(ZIPVER); \
+ $(TAR) xfj$(TARFLAGS) docbook5-$(DISTRO)-$(ZIPVER).tar.bz2; \
+ $(TAR) xfj$(TARFLAGS) docbook5-$(DISTRO)-*-$(ZIPVER).tar.bz2; \
+ mv docbook-$(DISTRO)-$(ZIPVER) $(ZIPVER); \
+ gunzip $(ZIPVER)/doc/reference.pdf.gz; \
+ gunzip $(ZIPVER)/doc/reference.txt.gz; \
+ rm -rf docbook5-$(DISTRO)-$(ZIPVER).tar.bz2; \
+ rm -rf docbook5-$(DISTRO)-*-$(ZIPVER).tar.bz2; \
+ chmod -R g+w $(ZIPVER); \
+ $(RM) current; \
+ ln -s $(ZIPVER) current; \
+ )"
+endif
+++ /dev/null
-<?xml version='1.0'?> <!-- -*- nxml -*- -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
- xmlns:sf="http://sourceforge.net/"
- exclude-result-prefixes="fm sf"
- version='1.0'>
-
-<xsl:param name="VERSION" select="string(document('')//fm:Version[1])"/>
-<xsl:param name="sf-relid" select="0"/>
-<xsl:strip-space elements="fm:*"/>
-
-<fm:project>
- <fm:Project>DocBook</fm:Project>
- <fm:Branch>XSL Stylesheets</fm:Branch>
- <fm:Version>docbook5ns-snapshot-2007-01-17</fm:Version>
-<!--
- <fm:License>MIT/X Consortium License</fm:License>
--->
- <fm:Release-Focus>
- <!-- Initial freshmeat announcement -->
- <!-- Documentation -->
- <!-- Code cleanup -->
- Minor feature enhancements
- <!-- Major feature enhancements -->
- <!-- Minor bugfixes -->
- <!-- Major bugfixes -->
- <!-- Minor security fixes -->
- <!-- Major security fixes -->
- </fm:Release-Focus>
- <fm:Home-Page-URL>http://sourceforge.net/projects/docbook/</fm:Home-Page-URL>
- <fm:Gzipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/docbook-xsl-{VERSION}.tar.gz?download</fm:Gzipped-Tar-URL>
- <fm:Zipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/docbook-xsl-{VERSION}.zip?download</fm:Zipped-Tar-URL>
- <fm:Bzipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/docbook-xsl-{VERSION}.bz2?download</fm:Bzipped-Tar-URL>
- <fm:Changelog-URL>http://sourceforge.net/project/shownotes.php?release_id={SFRELID}</fm:Changelog-URL>
- <fm:CVS-URL>http://docbook.cvs.sourceforge.net/docbook/</fm:CVS-URL>
- <fm:Mailing-List-URL>http://lists.oasis-open.org/archives/docbook-apps/</fm:Mailing-List-URL>
- <fm:Changes>This is a bug-fix release with a few feature enhancements.
-</fm:Changes>
-</fm:project>
-
-<xsl:template match="/" priority="-100">
- <xsl:if test="$sf-relid = 0">
- <xsl:message terminate="yes">
- <xsl:text>You must specify the sf-relid as a parameter.</xsl:text>
- </xsl:message>
- </xsl:if>
-
- <xsl:apply-templates select="//fm:project"/>
-</xsl:template>
-
-<xsl:template match="fm:project">
- <xsl:text> </xsl:text>
- <xsl:apply-templates/>
- <xsl:text> </xsl:text>
- <xsl:apply-templates select="fm:Changes" mode="text"/>
-</xsl:template>
-
-<xsl:template match="fm:Changes"/>
-
-<xsl:template match="fm:Gzipped-Tar-URL|fm:Zipped-Tar-URL|fm:Bzipped-Tar-URL">
- <xsl:value-of select="local-name(.)"/>
- <xsl:text>: </xsl:text>
- <xsl:value-of select="substring-before(., '{VERSION}')"/>
- <xsl:value-of select="$VERSION"/>
- <xsl:value-of select="substring-after(., '{VERSION}')"/>
- <xsl:text> </xsl:text>
-</xsl:template>
-
-<xsl:template match="fm:Changelog-URL">
- <xsl:value-of select="local-name(.)"/>
- <xsl:text>: </xsl:text>
- <xsl:value-of select="substring-before(., '{SFRELID}')"/>
- <xsl:value-of select="$sf-relid"/>
- <xsl:value-of select="substring-after(., '{SFRELID}')"/>
- <xsl:text> </xsl:text>
-</xsl:template>
-
-<xsl:template match="fm:*">
- <xsl:value-of select="local-name(.)"/>
- <xsl:text>: </xsl:text>
- <xsl:value-of select="normalize-space(.)"/>
- <xsl:text> </xsl:text>
-</xsl:template>
-
-</xsl:stylesheet>