]> granicus.if.org Git - docbook-dsssl/commitdiff
Added capability to specific OFFLINE=yes to permit test builds of
authorMichael Smith <xmldoc@users.sourceforge.net>
Mon, 22 Jan 2007 07:29:39 +0000 (07:29 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Mon, 22 Jan 2007 07:29:39 +0000 (07:29 +0000)
"distrib" and "zip" targets when offline. Also, changed build such
that docsrc directory is not longer excluded from packaging.

releasetools/Targets.mk

index 55695b62c4b957d8be1aa85675b74e35c45710c5..15310f539123bb9971715fac4a6856a911584e54 100644 (file)
@@ -84,7 +84,11 @@ catalog.xml: .make-catalog.xsl
 install.sh: $(INSTALL_SH) .CatalogManager.properties.example .urilist catalog.xml
        cp $< $@
 
+ifeq ($(OFFLINE),yes)
+distrib: all $(DISTRIB_DEPENDS)
+else
 distrib: all $(DISTRIB_DEPENDS) RELEASE-NOTES.txt RELEASE-NOTES.pdf $(NEWSFILE) ChangeHistory.xml.zip
+endif
 
 #newversion:
 #ifeq ($(CVSCHECK),)
@@ -123,7 +127,11 @@ else
        grep -v "<?xml" $(TMP)/fm-docbook-$(DISTRO) | freshmeat-submit $(FMGO)
 endif
 
+ifeq ($(OFFLINE),yes)
+zip:
+else
 zip: ChangeHistory.xml.zip
+endif
 ifeq ($(ZIPVER),)
        @echo You must specify ZIPVER for the zip target
        exit 1
@@ -152,7 +160,7 @@ endif
 # excludes for distros that end up as multiple packages
 ifneq ($(DISTRIB_PACKAGES),)
        for part in $(DISTRIB_PACKAGES); do \
-         find . -print  | grep "^./$$part" | cut -c3- >> $(TMP)/tar.exclude; \
+         find . -print  | grep "^./$$part/" | cut -c3- >> $(TMP)/tar.exclude; \
        done
 endif
 # tar up distro, then gzip/bzip/zip it