From xemacs-m  Sat Mar  1 00:20:38 1997
Received: from altair.xemacs.org (root@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id AAA18464
	for <xemacs-beta@xemacs.org>; Sat, 1 Mar 1997 00:20:37 -0600 (CST)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id VAA05727;
	Fri, 28 Feb 1997 21:16:03 -0800
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: update-elc question
References: <E0w06AM-0007J9-00@chekov.ctd.comsat.com> 	<m2rai2uluv.fsf@altair.xemacs.org> 	<rvrai2dqj0.fsf@sdnp5.ucsd.edu> <199703010426.UAA01531@xemacs.eng.sun.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: Martin Buchholz's message of Fri, 28 Feb 1997 20:26:14 -0800
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=US-ASCII
Date: 28 Feb 1997 21:16:02 -0800
Message-ID: <m267zcyyy5.fsf@altair.xemacs.org>
Lines: 31
X-Mailer: Gnus v5.4.16/XEmacs 20.1

Martin Buchholz writes:

>>>>>> "David" == David Moore <dmoore@ucsd.edu> writes:
David> What if the update-elc Makefile rule first recursed through the
David> lisp tree and removed any .elc file older than the
David> corresponding .el file.

> This is an excellent idea.  Writing *portable* sh code to do this in
> update-elc.sh may prove to be a challenge.

I thought we already did some of that already

echo "Deleting .elc files without .el files..."
comm -13 $els $elcs | sed -e '\!/vm.el!d' -e '\!/w3.el!d' -e 's/el$/elc/' | \
 while read file ; do echo rm "$file" ; rm "$file" ; done
echo "Deleting .elc files without .el files... Done"

Aren't the test operators -nt and -ot standard?

> There are still some places gotchas in the make process.  This is
> why at Sun we do the build for the Sun CD from a completely pristine
> workspace (no .elc's) and why Steven should do something similar.

I do, for major releases.

> We are working on eliminating those gotchas from the build system.

Yup.  Just wait until it comes time to deal with installable packages ...
-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

