[m-dev.] diff: install and create bindists better on win32

Tyson Dowd trd at cs.mu.OZ.AU
Thu Jul 29 04:34:06 AEST 1999


Hi,

Here are some more changes to improve install and bindist creation
on win32.  I can now create and install bindists pretty easily
(which is important when you're using a P133 laptop).

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


Estimated hours taken: 1

Improve the install and bindist creation on win32.

bindist/Mmakefile:
	Use EXT_FOR_EXE when installing executables. 

scripts/Mmakefile:
	Move and replace mmake instead of deleting it while running.


Index: bindist/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/bindist/Mmakefile,v
retrieving revision 1.20
diff -u -r1.20 Mmakefile
--- Mmakefile	1999/03/31 08:07:24	1.20
+++ Mmakefile	1999/07/28 00:18:24
@@ -16,8 +16,8 @@
 
 LIB_FILES	= bin doc html inc ints lib mdb/mdb_doc modules
 
-UTILS		= $(INSTALL_PREFIX)/bin/mkinit \
-		  $(INSTALL_PREFIX)/bin/mdemangle \
+UTILS		= $(INSTALL_PREFIX)/bin/mkinit$(EXT_FOR_EXE) \
+		  $(INSTALL_PREFIX)/bin/mdemangle$(EXT_FOR_EXE) \
 		  $(INSTALL_PREFIX)/bin/mtags \
 		  $(INSTALL_PREFIX)/bin/mprof_merge_runs
 
Index: scripts/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/Mmakefile,v
retrieving revision 1.15
diff -u -r1.15 Mmakefile
--- Mmakefile	1999/03/24 12:57:29	1.15
+++ Mmakefile	1999/07/28 00:18:38
@@ -61,13 +61,16 @@
 
 .PHONY: install_scripts
 install_scripts: $(SCRIPTS) install_dirs
-	# we remove the installed `mmake' script before (re)installing it
+	# we move the installed `mmake' script before (re)installing it
 	# to avoid overwriting the script while it is running
-	-rm -f $(INSTALL_BINDIR)/mmake
+	# (just removing it doesn't work very well on win32, which will
+	# deny you permission to write the file while mmake is running).
+	-mv $(INSTALL_BINDIR)/mmake $(INSTALL_BINDIR)/mmake.old
 	cp $(SCRIPTS) $(INSTALL_BINDIR) 
 	for file in $(SCRIPTS); do \
 		chmod u+w $(INSTALL_BINDIR)/$$file ;\
 	done
+	-rm -f $(INSTALL_BINDIR)/mmake.old
 
 .PHONY: install_emacs_scripts
 install_emacs_scripts: $(EMACS_SCRIPTS) install_dirs


-- 
       Tyson Dowd           # 
                            #  Surreal humour isn't eveyone'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