Date: Thu, 25 Jan 2001 00:41:43 +0200 From: Peter Pentchev <roam@orbitel.bg> To: Warner Losh <imp@harmony.village.org> Cc: clefevre@noos.fr, freebsd-arch@FreeBSD.ORG Subject: Re: patch for bsd.lib.mk to create include and lib dirs Message-ID: <20010125004143.B442@ringworld.oblivion.bg> In-Reply-To: <200101242202.f0OM2I961735@harmony.village.org>; from imp@harmony.village.org on Wed, Jan 24, 2001 at 03:02:18PM -0700 References: <zoggyfoy.fsf@gits.dyndns.org> <20010124113902.B332@ringworld.oblivion.bg> <zoggyfoy.fsf@gits.dyndns.org> <200101242202.f0OM2I961735@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 24, 2001 at 03:02:18PM -0700, Warner Losh wrote: > In message <zoggyfoy.fsf@gits.dyndns.org> Cyrille Lefevre writes: > : would not be better to use install -d instead of mkdir -p which permit, > : if needed alsewhere, to also set ownership ? > > install -d doesn't set the ownership, except on the last component of > the path. It was brought into the tree to be compatible with other > BSDs, and many objects were raised until I made the promise that it > wouldn't be used in "new" code. This happend in 1996: > > revision 1.16 > date: 1996/09/29 06:29:54; author: imp; state: Exp; lines: +56 -5 > Implement -d in install. Update the man page to reflect this change. > > But it looks like install -d has crept into the tree in other places. Well, it's either use install -d, or define MKDIR in sys.mk. Opinions? > But why have a define for this? Why not check to make sure that > directory is missing before trying to create it? I'd rather it was a define, because automatically creating directories might mean new directories *in the source tree* are left out of the hier mtree files. Having a define be turned on only by programs that know they need it could avoid this IMHO. G'luck, Peter -- This sentence was in the past tense. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010125004143.B442>