From: Norman Walsh Date: Fri, 19 Dec 2003 17:04:42 +0000 (+0000) Subject: Handle exclusions properly in demo zip X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c41c6c0b37ba28dde4f8c1652688b5d945c88c34;p=docbook-dsssl Handle exclusions properly in demo zip --- diff --git a/slides/Makefile b/slides/Makefile index 655239a8a..1409ad487 100644 --- a/slides/Makefile +++ b/slides/Makefile @@ -68,15 +68,15 @@ else 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 + -find demo -print | grep /CVS$$ >> /tmp/tar.exclude + -find demo -print | grep /CVS/ >> /tmp/tar.exclude + -find demo -print | grep .classes >> /tmp/tar.exclude + -find demo -print | grep .cvskeep >> /tmp/tar.exclude + -find demo -print | grep "~$$" >> /tmp/tar.exclude + -find demo -type f -name "#*" >> /tmp/tar.exclude + -find demo -type f -name ".cvsignore" >> /tmp/tar.exclude + -find demo -type f -name "Makefile*" >> /tmp/tar.exclude + -find demo -type f -name "README.CVS" >> /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