Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Apr 1996 14:22:59 -0400
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        Wolfram Schneider <wosch@cs.tu-berlin.de>
Cc:        current@FreeBSD.org
Subject:   Re: Files installed to /etc, (was: review request) 
Message-ID:  <9604301822.AA22772@halloran-eldar.lcs.mit.edu>
In-Reply-To: <199604301549.RAA01126@localhost>
References:  <199604292241.PAA05374@phaeton.artisoft.com> <23826.830823868@time.cdrom.com> <199604301549.RAA01126@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Tue, 30 Apr 1996 17:49:06 +0200, Wolfram Schneider <wosch@cs.tu-berlin.de> said:

> Solution: a variable MV="mv -f" in sys.mk

Better solution: write `mv -f' in Makefiles.  There is no inherent
virtue in symbolic names; the need for `-f' is grossly unlikely to
change in situations where `mv' remains constant.  (Paraphrase due to
Stephen Spackmann.)

> 2. Same problem for 'rm', use variable RM="rm -f"in sys.mk

Same better solution.

> 4. A target for executable scripts

> SCRIPTS= pagesize.sh	# blubber.pl foo.elc

Far better:

PROG=	pagesize

bsd.prog.mk:
------------------------------------
.sh:
.if defined(SCRIPTSED)
	${SCRIPTSED} < ${.IMPSRC} > ${.TARGET}
.else
	cp ${.IMPSRC} ${.TARGET}

	chmod 755 ${.TARGET}
------------------------------------
(And remember to turn off `-s' in `realinstall'.)

-GAWollman

--
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@lcs.mit.edu  | Shashish is the bonding of hearts in spite of distance.
Opinions not those of| It is a bond more powerful than absence.  We like people
MIT, LCS, ANA, or NSA| who like Shashish.  - Claude McKenzie + Florent Vollant



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9604301822.AA22772>