]> granicus.if.org Git - docbook-dsssl/commitdiff
Make demo file
authorNorman Walsh <ndw@nwalsh.com>
Tue, 17 Sep 2002 12:15:29 +0000 (12:15 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 17 Sep 2002 12:15:29 +0000 (12:15 +0000)
slides/Makefile

index dc83de1b7c668581ff45c88fdd7e1f6c6d87b5e1..6cd3c7ebed816ee320a401d4cfd02c3640c4018c 100644 (file)
@@ -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