From 97a01bc9a50498c78b99194ece8279d3e0d6574d Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Sat, 20 Jan 2001 14:27:11 +0000 Subject: [PATCH] Provide both "make dist" and "make snap". --- Makefile.in | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 5daa7fe..9e49b2b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -130,16 +130,25 @@ update-version: @OPT="-s`$(SHTOOL) version -lc -dshort version.c`"; \ $(SHTOOL) version -lc -n 'Petidomo' -p petidomo_ $$OPT version.c +# roll release or snapshot source distribution tarballs dist: distclean - @echo "Fixing source tree permissions"; \ - $(SHTOOL) fixperm * - @echo "Rolling source distribution tarball"; \ + @echo "Rolling RELEASE source distribution tarball"; \ + $(SHTOOL) fixperm *; \ V=`$(SHTOOL) version -lc -dshort version.c`; \ $(SHTOOL) tarball \ -o petidomo-$$V.tar.gz -d petidomo-$$V -u ossp -g petidomo \ -e 'CVS,\.cvsignore,\.configure,ChangeLog*,\.\#.*,*~$$,\.[ao]$$' \ -c 'gzip -9' .; \ ls -l petidomo-$$V.tar.gz +snap: distclean + @echo "Rolling SNAPSHOT source distribution tarball"; \ + $(SHTOOL) fixperm *; \ + D=`date '+%Y%d%m'`; \ + $(SHTOOL) tarball \ + -o petidomo-SNAP-$$D.tar.gz -d petidomo-SNAP-$$V -u ossp -g petidomo \ + -e 'CVS,\.cvsignore,\.configure,ChangeLog*,\.\#.*,*~$$,\.[ao]$$' \ + -c 'gzip -9' .; \ + ls -l petidomo-SNAP-$$D.tar.gz # Dependencies