From: Norman Walsh Date: Mon, 29 Apr 2002 19:40:39 +0000 (+0000) Subject: Added a VERSION file, added distrib, newversion, zip rules to Makefile X-Git-Tag: release/1.79.1~6^2~5772 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43da0f9817de18e06163f4ae2c8fae2e2a32929c;p=docbook-dsssl Added a VERSION file, added distrib, newversion, zip rules to Makefile --- diff --git a/testdocs/.cvsignore b/testdocs/.cvsignore index 69efd0c55..8d3e4ffaa 100644 --- a/testdocs/.cvsignore +++ b/testdocs/.cvsignore @@ -2,3 +2,4 @@ mlang.sgm mlang.xml mlang.fo +WhatsNew diff --git a/testdocs/Makefile b/testdocs/Makefile index 579e2d6d4..979179396 100644 --- a/testdocs/Makefile +++ b/testdocs/Makefile @@ -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 index 000000000..b63ba696b --- /dev/null +++ b/testdocs/VERSION @@ -0,0 +1 @@ +0.9