]> granicus.if.org Git - docbook-dsssl/commitdiff
Added a VERSION file, added distrib, newversion, zip rules to Makefile
authorNorman Walsh <ndw@nwalsh.com>
Mon, 29 Apr 2002 19:40:39 +0000 (19:40 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Mon, 29 Apr 2002 19:40:39 +0000 (19:40 +0000)
testdocs/.cvsignore
testdocs/Makefile
testdocs/VERSION [new file with mode: 0644]

index 69efd0c550de6a7667a4b7391288e12fa2911acc..8d3e4ffaa43cd3d19a0cce28648c349b444a0374 100644 (file)
@@ -2,3 +2,4 @@
 mlang.sgm
 mlang.xml
 mlang.fo
+WhatsNew
index 579e2d6d4ba896786d358bf8cd2461d9fba23695..979179396d99d09da9f4f47e56b4dbcbeb7367f0 100644 (file)
@@ -82,4 +82,45 @@ endif
 endif
 endif
 
+distrib:
+       $(CVS2LOG) -w
+ifeq ($(DIFFVER),)
+       $(MERGELOGS) > WhatsNew
+else
+       $(MERGELOGS) -v $(DIFFVER) > WhatsNew
+endif
+
+newversion:
+ifeq ($(NEXTVER),)
+       $(NEXTVERSION)
+else
+       $(NEXTVERSION) -v $(NEXTVER)
+endif
+       make DIFFVER=$(DIFFVER) distrib
+
+zip:
+ifeq ($(ZIPVER),)
+       @echo You must specify ZIPVER for the zip target
+else
+       rm -rf /tmp/docbook-testdocs-$(ZIPVER)
+       rm -f /tmp/tar.exclude
+       rm -f /tmp/docbook-testdocs-$(ZIPVER).tar.gz
+       rm -f /tmp/docbook-testdocs-$(ZIPVER).zip
+       mkdir /tmp/docbook-testdocs-$(ZIPVER)
+       touch /tmp/tar.exclude
+       find . -print  | grep /CVS$$ | cut -c3- >> /tmp/tar.exclude
+       find . -print  | grep /CVS/ | cut -c3- >> /tmp/tar.exclude
+       find . -print  | grep .classes | cut -c3- >> /tmp/tar.exclude
+       find . -type f -name "*~"  | cut -c3- >> /tmp/tar.exclude
+       find . -type f -name ".*~"  | cut -c3- >> /tmp/tar.exclude
+       find . -type f -name "#*"  | cut -c3- >> /tmp/tar.exclude
+       find . -type f -name ".cvsignore"  | cut -c3- >> /tmp/tar.exclude
+       find . -type f -name "Makefile*"   | cut -c3- >> /tmp/tar.exclude
+       find . -type f -name "README.CVS"   | cut -c3- >> /tmp/tar.exclude
+       tar cf - * --exclude-from /tmp/tar.exclude | (cd /tmp/docbook-testdocs-$(ZIPVER); tar xf -)
+       cd /tmp && tar cf - docbook-testdocs-$(ZIPVER) | gzip > docbook-testdocs-$(ZIPVER).tar.gz
+       cd /tmp && zip -rpD docbook-testdocs-$(ZIPVER).zip docbook-testdocs-$(ZIPVER)
+       rm -f tar.exclude
+endif
+
 # EOF
diff --git a/testdocs/VERSION b/testdocs/VERSION
new file mode 100644 (file)
index 0000000..b63ba69
--- /dev/null
@@ -0,0 +1 @@
+0.9