[m-dev.] diff: tar and gzip samples/extras/tests in bindists

Tyson Dowd trd at cs.mu.OZ.AU
Mon Sep 4 23:02:40 AEDT 2000


Hi,

tests, extras and samples are a lot bigger than they used to be.

===================================================================


Estimated hours taken: 0.5

bindist/Mmakefile:
	Put the samples, extras and tests in .tar.gz files.  
	This means that installation requires less disk space, as they
	are not expanded unless someone is actually interested in them.

Index: bindist/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/bindist/Mmakefile,v
retrieving revision 1.25
diff -u -r1.25 Mmakefile
--- bindist/Mmakefile	1999/12/19 15:54:23	1.25
+++ bindist/Mmakefile	2000/09/04 04:18:25
@@ -93,14 +93,22 @@
 	else								\
 		cd ../../tests; mmake realclean;			\
 	fi
-	cp -r ../samples $(MERCURY_VERSION)/samples
-	cp -r ../extras $(MERCURY_VERSION)/extras
+	(dir=`pwd` && cd .. && \
+		tar -cf $$dir/$(MERCURY_VERSION)/samples.tar samples && \
+		gzip $$dir/$(MERCURY_VERSION)/samples.tar)
+	(dir=`pwd` && cd .. && \
+		tar -cf $$dir/$(MERCURY_VERSION)/extras.tar extras && \
+		gzip $$dir/$(MERCURY_VERSION)/extras.tar)
 	# Aditi isn't ready for distribution yet.
 	rm -rf $(MERCURY_VERSION)/extras/aditi
 	if [ -d ../tests ]; then					\
-		cp -r ../tests $(MERCURY_VERSION)/tests;		\
+		(dir=`pwd` && cd .. && \
+			tar -cf $$dir/$(MERCURY_VERSION)/tests.tar tests && \
+			gzip $$dir/$(MERCURY_VERSION)/tests.tar)	\
 	else								\
-		cp -r ../../tests $(MERCURY_VERSION)/tests;		\
+		(dir=`pwd` && cd ../.. && \
+			tar -cf $$dir/$(MERCURY_VERSION)/tests.tar tests && \
+			gzip $$dir/$(MERCURY_VERSION)/tests.tar)	\
 	fi
 	for file in $(MISC_FILES); do					\
 		sed	-e 's/<VERSION>/$(VERSION)/g'			\


-- 
       Tyson Dowd           # 
                            #  Surreal humour isn't everyone's cup of fur.
     trd at cs.mu.oz.au        # 
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list