From e5f952461c219dad2c0b570ed113ccb50995175c Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Tue, 17 Sep 2002 12:15:29 +0000 Subject: [PATCH] Make demo file --- slides/Makefile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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 -- 2.40.0