trivial diff: yet another bindist bug fix

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Dec 3 05:10:56 AEDT 1998


Estimated hours taken: 0.25

Fix yet another bug in the binary distribution.

bindist/bindist.Makefile.in:
	Fix a bug in my previous change to this file -- it
	was doing the wrong thing when installing on machines
	missing either SICStus or NU-Prolog.

Index: bindist/bindist.Makefile.in
===================================================================
RCS file: /home/mercury1/repository/mercury/bindist/bindist.Makefile.in,v
retrieving revision 1.13
diff -u -r1.13 bindist.Makefile.in
--- bindist.Makefile.in	1998/11/29 03:45:58	1.13
+++ bindist.Makefile.in	1998/12/02 17:36:13
@@ -65,8 +65,10 @@
 	# from the tar file will fail; we therefore ignore any errors
 	# in those two steps.
 	LIB_TAR_FILE=`pwd`/lib.tar && cd $(INSTALL_LIBDIR) && {		\
-		tar -xf $$LIB_TAR_FILE $(LIB_NUPROLOG_PARTS);		\
-		tar -xf $$LIB_TAR_FILE $(LIB_SICSTUS_PARTS);		\
+		[ -n "$(LIB_NUPROLOG_PARTS)" ] &&			\
+			tar -xf $$LIB_TAR_FILE $(LIB_NUPROLOG_PARTS);	\
+		[ -n "$(LIB_SICSTUS_PARTS)" ] &&			\
+			tar -xf $$LIB_TAR_FILE $(LIB_SICSTUS_PARTS);	\
 		tar -xf $$LIB_TAR_FILE $(LIB_PARTS);			\
 	}
 	gzip lib.tar # tidy up

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "Binaries may die
WWW: <http://www.cs.mu.oz.au/~fjh>  |   but source code lives forever"
PGP: finger fjh at 128.250.37.3        |     -- leaked Microsoft memo.



More information about the developers mailing list