Provide both "make dist" and "make snap".

This commit is contained in:
Ralf S. Engelschall 2001-01-20 14:27:11 +00:00
parent fd3b775a56
commit 97a01bc9a5

View File

@ -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