diff: remove support for `.mod' files

Fergus Henderson fjh at cs.mu.oz.au
Fri Nov 21 18:10:35 AEDT 1997


Delete support for `.mod' files, since they are obsolete now.

scripts/mod2c:
	Delete this script.

scripts/Mmakefile:
	Delete reference to `mod2c'.

scripts/Mmake.rules:
	Delete the `.mod' suffix and the rule for .mod -> .c,

scripts/Mmake.vars.in:
	Delete the MOD2C, MOD2CFLAGS, MOD2H, and MOD2HFLAGS variables.

doc/user_guide.texi
	Delete mention of `.mod' files.

cvs diff  scripts/Mmake.rules scripts/Mmake.vars.in scripts/Mmakefile scripts/mod2c
Index: scripts/Mmake.rules
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/Mmake.rules,v
retrieving revision 1.43
diff -u -r1.43 Mmake.rules
--- Mmake.rules	1997/07/27 15:09:26	1.43
+++ Mmake.rules	1997/11/21 07:07:19
@@ -12,7 +12,7 @@
 
 # Beware that the order of suffixes is significant.
 .SUFFIXES: .m .nl .no .err .int .int2 .int3 .opt .dep .depend .doit \
-		.ugly .date .date3 .optdate .mod .c .nu .o .pic_o \
+		.ugly .date .date3 .optdate .c .nu .o .pic_o \
 		.i .s .pic_s \
 		.ql .pl
 
@@ -102,11 +102,6 @@
 .m.c:
 	rm -f $*.c
 	$(MCG) --grade $(GRADE) $(MCGFLAGS) $< > $*.err 2>&1
-
-# the next rule is needed only for a few files in the `runtime' directory
-
-.mod.c:
-	[ -f $< ] && $(MOD2C) -s $(GRADE) $(MOD2CFLAGS) $< > $@
 
 .c.o:
 	$(MGNUC) --grade $(GRADE) $(MGNUCFLAGS) -c $< -o $@
Index: scripts/Mmake.vars.in
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/Mmake.vars.in,v
retrieving revision 1.10
diff -u -r1.10 Mmake.vars.in
--- Mmake.vars.in	1997/10/18 17:25:14	1.10
+++ Mmake.vars.in	1997/11/21 07:08:54
@@ -44,10 +44,6 @@
 # The following variables hold the names of various programs and
 # the options which should be passed to them.
 #
-MOD2C		= mod2c
-MOD2CFLAGS	= $(EXTRA_MOD2CFLAGS)
-MOD2H		= mod2h
-MOD2HFLAGS	= $(EXTRA_MOD2HFLAGS)
 C2INIT		= c2init
 C2INITFLAGS	= $(EXTRA_C2INITFLAGS)
 MGNUC		= mgnuc
Index: scripts/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/Mmakefile,v
retrieving revision 1.5
diff -u -r1.5 Mmakefile
--- Mmakefile	1997/10/15 16:30:33	1.5
+++ Mmakefile	1997/11/21 06:58:52
@@ -14,7 +14,7 @@
 
 #-----------------------------------------------------------------------------#
 
-SCRIPTS = mmake mmc mod2c c2init mgnuc ml mprof mprof_merge_runs mint \
+SCRIPTS = mmake mmc c2init mgnuc ml mprof mprof_merge_runs mint \
 	  sicstus_conv mtags vpath_find mercury_update_interface \
 	  mkfifo_using_mknod
 NUPROLOG_SCRIPTS = mnc mnl mnp
cvs diff: scripts/mod2c was removed, no comparison available

-- 
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