From xemacs-m  Fri Feb 28 01:12:24 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id BAA21961
	for <xemacs-beta@xemacs.org>; Fri, 28 Feb 1997 01:12:23 -0600 (CST)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id XAA30532;
	Thu, 27 Feb 1997 23:24:06 -0800
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: Dynamic adjustment of PURESIZE (was Re: [19.15-b95] Success under Solaris-2.5/X11R6.3)
References: <vklo8e5aq3.fsf@cdc.noaa.gov> 	<m2ybcdncec.fsf@altair.xemacs.org> 	<QQceih18308.199702242148@crystal.WonderWorks.COM> 	<m2afotn832.fsf@altair.xemacs.org> 	<QQceik19037.199702242244@crystal.WonderWorks.COM> 	<m2sp2k7fcu.fsf_-_@altair.xemacs.org> 	<kig7mjvlsdt.fsf@jagor.srce.hr> 	<xcdwwrve9vz.fsf@jordan.cs.uchicago.edu> 	<199702272203.OAA26353@newman> 	<QQcetl00761.199702272217@crystal.WonderWorks.COM> 	<m2u3mxonqj.fsf@altair.xemacs.org> <QQceto01524.199702272312@crystal.WonderWorks.COM>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Kyle Jones's message of Thu, 27 Feb 1997 18:12:25 -0500 (EST)
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=US-ASCII
Date: 27 Feb 1997 23:24:02 -0800
Message-ID: <m2lo89v1f1.fsf@altair.xemacs.org>
Lines: 82
X-Mailer: Gnus v5.4.15/XEmacs 20.1

Kyle Jones writes:

> OK, a trigger file then.  if REBUILD exists, delete it and run
> make again.

Okey Dokey, but how about opposite sense?

Index: src/Makefile.in.in
===================================================================
RCS file: /usr/local/xemacs/xemacs-20.0/src/Makefile.in.in,v
retrieving revision 1.8
diff -u -r1.8 Makefile.in.in
--- Makefile.in.in	1997/02/27 06:08:42	1.8
+++ Makefile.in.in	1997/02/28 07:16:44
@@ -1332,21 +1332,37 @@
 	-if [ -w ${srcdir}/../lisp ]; then \
 	  w=`pwd`; cd ${srcdir} && $${w}/temacs -nl -batch -l inc-vers; \
 	else true; fi
-	$(DUMPENV) ./temacs -nl -batch -l loadup.el dump
+	touch SATISFIED
+	-$(DUMPENV) ./temacs -nl -batch -l loadup.el dump
+	if [ -f SATISFIED ]; then \
+		$(MAKE) release; \
+	fi
 #else /* ! defined (HAVE_SHM) */
 	-if [ -w ${srcdir}/../lisp ]; then \
 	  w=`pwd`; cd ${srcdir} && $${w}/temacs -batch -l inc-vers; \
 	else true; fi
-	$(DUMPENV) ./temacs -batch -l loadup.el dump
+	touch SATISFIED
+	-$(DUMPENV) ./temacs -batch -l loadup.el dump
+	if [ -f SATISFIED ]; then \
+		$(MAKE) release; \
+	fi
 #endif /* ! defined (HAVE_SHM) */
 	touch release
 #endif /* ! defined (CANNOT_DUMP) */
 
 xemacs: temacs ${libsrc}DOC ${lisp} MOFILE OTHER_FILES
-	$(DUMPENV) ./temacs -batch -l loadup.el dump
+	touch SATISFIED
+	-$(DUMPENV) ./temacs -batch -l loadup.el dump
+	if [ -f SATISFIED ]; then \
+		$(MAKE) xemacs; \
+	fi
 
 xemacs-no-site-file: temacs ${libsrc}DOC ${lisp} MOFILE OTHER_FILES
-	$(DUMPENV) ./temacs -batch -l loadup.el dump no-site-file
+	touch SATISFIED
+	-$(DUMPENV) ./temacs -batch -l loadup.el dump no-site-file
+	if [ -f SATISFIED ]; then \
+		$(MAKE) xemacs-no-site-file; \
+	fi
 
 obj_src = $(objs:.o=.c)
 


Index: src/alloc.c
===================================================================
RCS file: /usr/local/xemacs/xemacs-20.0/src/alloc.c,v
retrieving revision 1.4
diff -u -r1.4 alloc.c
--- alloc.c	1997/02/27 06:08:42	1.4
+++ alloc.c	1997/02/28 06:50:52
@@ -2735,10 +2739,11 @@
   clear_message ();
 
   if (rc < 0) {
-    fatal ("Pure size adjusted, please type `make' again");
+    fatal ("Pure size adjusted, will restart `make'");
   } else if (pure_lossage && die_if_pure_storage_exceeded) {
     fatal ("Pure storage exhausted");
   }
+  (void)sys_unlink("SATISFIED");
 }
 
 

-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

