From: Jim Paris <jim@jtan.com>
To: Gerald Champagne <gerald.champagne@esstech.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: How can I determine which files are used?
Date: Thu, 13 Sep 2001 17:50:07 -0400 [thread overview]
Message-ID: <20010913175007.A4641@neurosis.mit.edu> (raw)
In-Reply-To: <3BA12877.6030505@esstech.com>; from gerald.champagne@esstech.com on Thu, Sep 13, 2001 at 04:43:19PM -0500
> Is there a recommended method of determining which files in the
> Linux source tree are used with a given .config file? I've already
> removed the obvious things like unused entries in the arch directory
> and a couple of driver directories, but is there a way to generate a
> list of only the files that are used?
>
> I know I've read discussions about someday splitting up the source code
> into smaller blocks, but can someone point me towards information on how
> to prune the existing source tree?
I suppose you could do a
make clean
find . | xargs touch -t 198001010101
make
find . -not atime -1 | xargs rm $i
Which would set all of the access times to be really old,
rebuild everything, and then remove all files which weren't
touched during the build.
(Be careful; I didn't actually test this command and I wouldn't
trust it too much without testing it, since it's quite capable
of wiping out the whole directory)
-jim
next prev parent reply other threads:[~2001-09-13 21:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-13 21:43 How can I determine which files are used? Gerald Champagne
2001-09-13 21:50 ` Jim Paris [this message]
2001-09-13 21:53 ` Jim Paris
2001-09-14 1:35 ` Keith Owens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010913175007.A4641@neurosis.mit.edu \
--to=jim@jtan.com \
--cc=gerald.champagne@esstech.com \
--cc=linux-mips@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.