From owner-freebsd-current Tue Sep 24 14:57:07 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA12215 for current-outgoing; Tue, 24 Sep 1996 14:57:07 -0700 (PDT) Received: from uuserve.on.ca (uuserve.on.ca [192.139.145.85]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id OAA12174 for ; Tue, 24 Sep 1996 14:56:58 -0700 (PDT) Received: (from rjr@localhost) by sparks.empath.on.ca (8.7.6/8.6.12) id RAA04172 for freebsd-current@freebsd.org; Tue, 24 Sep 1996 17:56:18 -0400 (EDT) From: "Robert J. Rutter" Message-Id: <199609242156.RAA04172@sparks.empath.on.ca> Subject: Re: install on {Net,Open}BSD vs install on FreeBSD To: freebsd-current@freebsd.org Date: Tue, 24 Sep 1996 17:56:17 -0400 (EDT) Reply-To: "Robert Rutter" X-Return-Address: rjr@sparks.empath.on.ca X-Os: FreeBSD Unix 2.2-current X-Mailer: ELM [version 2.4ME+ PL26 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk |In message <199609230506.PAA05354@godzilla.zeta.org.au> Bruce Evans writes: |I'd still like to merge in the -d code from NetBSD/OpenBSD. SunOS |also sets the precedent. While it is true the permissions aren't |exactly right, other software than FreeBSD's 'make install' uses this |to make sure directories are present. This other software does happen |to be OpenBSD's make files, and it would be nice to be able to cross |build my mips stuff on FreeBSD w/o needing to have a special install. |I've seen it in a few other makefiles floating around on the net. I'm |not advocating that we use it for the 'make install' phase of the |build process, just that it be available. | |With that clarification, do people generally like or dislike the |proposal? | The SysV/ucb install recognizes the o, g and f flags for setting the destination file's owner, group and permissions. I think that this would be a prerequisite for any '-d' implementation. When compared with the alternate options, it would be a useful feature. eg. install -d -o bin -g bin -f 0755 /usr/local/dir1/dir2 vs. [ -d /usr/local/dir1 ] || mkdir /usr/local/dir1 chown bin /usr/local/dir1 chgrp bin /usr/local/dir1 chmod 0555 /usr/local/dir1 [ -d /usr/local/dir1/dir2 ] || mkdir /usr/local/dir1/dir2 chown bin /usr/local/dir1/dir2 chgrp bin /usr/local/dir1/dir2 chmod 0555 /usr/local/dir1/dir2 ... -- Robert Rutter rjr@sparks.empath.on.ca The thing I really like about Windows 95 is its artificial intelligence. For example, check the properties of any file with the extension "old". Windows 95 will tell you that it is an old file. What other major operating system available today has intelligence that is so artificial?