From: Norman Walsh Date: Tue, 17 Sep 2002 12:15:29 +0000 (+0000) Subject: Make demo file X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f396c25687ad4e24392ebb6422e2c5c5dd614f0;p=docbook-dsssl Make demo file --- diff --git a/slides/Makefile b/slides/Makefile index dc83de1b7..6cd3c7ebe 100644 --- a/slides/Makefile +++ b/slides/Makefile @@ -46,15 +46,16 @@ ifeq ($(ZIPVER),) else make -C tests clean rm -rf /tmp/slides-$(ZIPVER) - rm -f /tmp/tar.exclude rm -f /tmp/slides-$(ZIPVER).tar.gz rm -f /tmp/slides-$(ZIPVER).zip mkdir /tmp/slides-$(ZIPVER) + rm -f /tmp/tar.exclude 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 . -print | grep .cvskeep | cut -c3- >> /tmp/tar.exclude + find . -print | grep demo/ | cut -c3- >> /tmp/tar.exclude find . -print | grep "~$$" | cut -c3- >> /tmp/tar.exclude find . -type f -name "#*" | cut -c3- >> /tmp/tar.exclude find . -type f -name ".cvsignore" | cut -c3- >> /tmp/tar.exclude @@ -63,5 +64,21 @@ else tar cf - * --exclude-from /tmp/tar.exclude | (cd /tmp/slides-$(ZIPVER); tar xf -) cd /tmp && tar cf - slides-$(ZIPVER) | gzip > slides-$(ZIPVER).tar.gz cd /tmp && zip -rpD slides-$(ZIPVER).zip slides-$(ZIPVER) + rm -rf /tmp/slides-demo-$(ZIPVER) + rm -f /tmp/slides-demo-$(ZIPVER).zip + mkdir /tmp/slides-demo-$(ZIPVER) + rm -f /tmp/tar.exclude + touch /tmp/tar.exclude + find demo -print | grep /CVS$$ | cut -c3- >> /tmp/tar.exclude + find demo -print | grep /CVS/ | cut -c3- >> /tmp/tar.exclude + find demo -print | grep .classes | cut -c3- >> /tmp/tar.exclude + find demo -print | grep .cvskeep | cut -c3- >> /tmp/tar.exclude + find demo -print | grep "~$$" | cut -c3- >> /tmp/tar.exclude + find demo -type f -name "#*" | cut -c3- >> /tmp/tar.exclude + find demo -type f -name ".cvsignore" | cut -c3- >> /tmp/tar.exclude + find demo -type f -name "Makefile*" | cut -c3- >> /tmp/tar.exclude + find demo -type f -name "README.CVS" | cut -c3- >> /tmp/tar.exclude + tar cf - demo --exclude-from /tmp/tar.exclude | (cd /tmp/slides-demo-$(ZIPVER); tar xf -) + cd /tmp && zip -rpD slides-demo-$(ZIPVER).zip slides-demo-$(ZIPVER) rm -f tar.exclude endif