From owner-freebsd-hackers Sun Nov 30 14:08:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA08865 for hackers-outgoing; Sun, 30 Nov 1997 14:08:11 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA08858 for ; Sun, 30 Nov 1997 14:08:06 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.8.8/8.8.8) with UUCP id XAA26227 for hackers@FreeBSD.ORG; Sun, 30 Nov 1997 23:07:57 +0100 (CET) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.8.8/8.8.5) id WAA07568; Sun, 30 Nov 1997 22:58:58 +0100 (MET) Message-ID: <19971130225858.49104@uriah.heep.sax.de> Date: Sun, 30 Nov 1997 22:58:58 +0100 From: J Wunsch To: "hackers@freebsd.org" Subject: Re: How is selection made of what goes into CDrom? Reply-To: Joerg Wunsch References: <199711302019.PAA24867@federation.addy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <199711302019.PAA24867@federation.addy.com>; from Francisco Reyes on Sun, Nov 30, 1997 at 03:12:17PM +0000 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Francisco Reyes wrote: > Alternatively a list of where the sources are > in the first CD and a small script to get a program out would be just > as good. For example recently I wanted to look at the source code for > "renice". Getting the entire usr.bin took too much space. Where's what shouldn't be that hard to guess, since the various source tarballs just represent the subdirs of /usr/src, which are in turn closely related (though not 100 % sure) to the target directory in the tree. Suppose you're looking for the source of /bin/ls, it'll be in /usr/src/bin/ls. Or /usr/sbin/ppp can be found in /usr/src/usr.sbin/ppp. That's all explained in hier(7). Finally, the various s.?? files are just split .tar.gz files, so you can always extract from there what you want. That's rather a Unix beginner's exercise. ;-) (<== "non-aggressive smiley" :-) So for your example "renice": j@uriah 164% whereis -b renice renice: /usr/bin/renice Ok, we need the /usr/src/usr.bin/ tarball then ("subin" == "src/usr.bin"): j@uriah 165% cd /usr/src j@uriah 166% cat /cdrom/src/subin.?? | tar -xvzf - usr.bin/renice usr.bin/renice/ usr.bin/renice/CVS/ usr.bin/renice/CVS/Root usr.bin/renice/CVS/Repository usr.bin/renice/CVS/Entries usr.bin/renice/CVS/Tag usr.bin/renice/Makefile usr.bin/renice/renice.8 usr.bin/renice/renice.c (If you don't want the CVS/ files, add "--exclude CVS" to the tar options.) Disclaimer: my 2.2.5 CDs didn't arrive yet, so i don't know what's there on which CD at all. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)