diff: mmake tar
Fergus Henderson
fjh at cs.mu.oz.au
Tue Jun 10 12:18:46 AEST 1997
mercury/Mmakefile:
Change the rule for `mmake tar' so that it includes the test
directory but does not include the `trial', `bytecode',
or `lp_solve' directories.
Index: Mmakefile
===================================================================
RCS file: /home/staff/zs/imp/mercury/Mmakefile,v
retrieving revision 1.1
diff -u -r1.1 Mmakefile
--- Mmakefile 1997/02/13 21:38:04 1.1
+++ Mmakefile 1997/06/04 05:26:12
@@ -171,9 +171,23 @@
-rm -f config.status config.cache config.log configure.log
-rm -f runtime/conf.h
-rm -f Mmake.common
- cd .. && (mv mercury mercury-$(VERSION); \
- tar -cf - mercury-$(VERSION) | gzip -9 > mercury-$(VERSION).tar.gz; \
- mv mercury-$(VERSION) mercury)
+ # 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).
+ cd .. && ( \
+ mv mercury mercury-$(VERSION); \
+ mv tests mercury-$(VERSION)/tests; \
+ mkdir stuff-to-exclude; \
+ mv mercury-$(VERSION)/trial stuff-to-exclude; \
+ mv mercury-$(VERSION)/bytecode stuff-to-exclude; \
+ mv mercury-$(VERSION)/lp_solve stuff-to-exclude; \
+ tar -cf - mercury-$(VERSION) | \
+ gzip -9 > mercury-$(VERSION).tar.gz; \
+ mv stuff-to-exclude/* mercury-$(VERSION); \
+ rmdir stuff-to-exclude; \
+ mv mercury-$(VERSION)/tests tests; \
+ mv mercury-$(VERSION) mercury \
+ )
version:
@echo $(VERSION)
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
More information about the developers
mailing list