From owner-freebsd-questions Wed Apr 5 7: 0:45 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp2.teleport.com (smtp2.teleport.com [192.108.254.20]) by hub.freebsd.org (Postfix) with SMTP id 8C9E937B87C for ; Wed, 5 Apr 2000 07:00:22 -0700 (PDT) (envelope-from dirkm@harpo.dhis.net) Received: (qmail 7546 invoked from network); 5 Apr 2000 14:00:18 -0000 Received: from pm3-01-01.eug.du.teleport.com (HELO harpo.dhis.net) (216.26.32.65) by smtp2.teleport.com with SMTP; 5 Apr 2000 14:00:18 -0000 Received: (from dirkm@localhost) by harpo.dhis.net (8.9.3/8.9.2) id HAA91871; Wed, 5 Apr 2000 07:00:27 -0700 (PDT) (envelope-from dirkm) Date: Wed, 5 Apr 2000 07:00:27 -0700 From: Dirk Myers To: Jay Krell Cc: questions@FreeBSD.ORG Subject: Re: make install in ports non leaf Message-ID: <20000405070026.A53715@teleport.com> References: <006001bf9edf$9e5501d0$0201a8c0@jayk_home4nt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <006001bf9edf$9e5501d0$0201a8c0@jayk_home4nt>; from jay.krell@cornell.edu on Wed, Apr 05, 2000 at 02:16:07AM -0700 X-System: FreeBSD 3.4-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jay Krell flailed at the keyboard, producing: > Why can't you make install in non leaf ports directories? > cd /usr/ports > make install > cd /usr/ports/lang > make install > ? I don't know the canonical answer, but I suspect it has to do with the quantity of programs in ports, and the fact that there may be multiple versions of the same program in ports. For example, I'm looking at the /usr/ports/lang directory now, and there look to be ~9 versions of tcl included. It seems excessive to me to have all those installed on the same machine, but I guess some folks really like tcl ;). To get to the meat of the post, though, for people who really want to do this, something like this should work (adjust for the shell you're using, this works in zsh): (with /usr/ports/lang the current directory) for i in `ls`: do cd $i ; make install clean ; cd .. ; done If you want to do this one level higher up, just nest the for in another loop. NOTE: I have no idea whether (for example) the various versions of tcl will peacefully coexist or not, so I may be selling you rope, here. Dirk dirkm@teleport.com -- Well, if you're going to kill me, hurry up. I have to take my tonic at two. -- Groucho Marx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message