Split the distribution into

Estimated hours taken: 0.5

Split the distribution into
	mercury-$VERSION.tar.gz		(main distribution)
	mercury-$VERSION-extras.tar.gz 	(extras directory)

Mmakefile:
	Change rule for `tar' target to build
	mercury-$(VERSION)-extras.tar.gz as well, and not put
	extras in the main distribution.

tools/test_mercury:
	Deal with extras tar files when creating stable releases, and
	putting them on the ftp site.
This commit is contained in:
Tyson Dowd
1997-09-18 06:04:12 +00:00
parent 1eea923827
commit 2e697fdd3c
2 changed files with 12 additions and 1 deletions

View File

@@ -178,6 +178,8 @@ tar: README INSTALL
# Package up the mercury directory and the tests directory,
# but with some subdirectories excluded, into a gzipped tar
# archive that will unpack into mercury-$(VERSION).
# Put the extras directory into a gzipped tar archive that
# will unpack into mercury-$(VERSION)-extras.
cd .. && ( \
mv mercury mercury-$(VERSION); \
mv tests mercury-$(VERSION)/tests; \
@@ -185,10 +187,14 @@ tar: README INSTALL
mv mercury-$(VERSION)/trial stuff-to-exclude; \
mv mercury-$(VERSION)/bytecode stuff-to-exclude; \
mv mercury-$(VERSION)/lp_solve stuff-to-exclude; \
mv mercury-$(VERSION)/extras mercury-$(VERSION)-extras; \
tar -cf - mercury-$(VERSION) | \
gzip -9 > mercury-$(VERSION).tar.gz; \
mv stuff-to-exclude/* mercury-$(VERSION); \
rmdir stuff-to-exclude; \
tar -cf - mercury-$(VERSION)-extras | \
gzip -9 > mercury-$(VERSION)-extras.tar.gz; \
mv mercury-$(VERSION)-extras mercury-$(VERSION)/extras; \
mv mercury-$(VERSION)/tests tests; \
mv mercury-$(VERSION) mercury \
)