History log of /build/tools/findleaves.py
Revision Date Author Comments
d8a328579786a18ff54b878646b9f9ef8033d8c6 25-Aug-2012 Conley Owens <cco3@android.com> Follow symlinks in findleaves

If we replace the project directories with symlinks to the actual
directories, everything should build fine. Unfortunately, without
this fix, it does not.

Change-Id: Id19fef9696d0f599a7b3a14b6a8fc10ae857f9c7
58e52b434bb534577847d9cb705346ad5ee158b1 20-Dec-2010 Ishida, Haruyasu <haruyasu.ishida@sonyericsson.com> Sort the results of findleaves again.

Commit d36e945 changed findleaves.py to sort the output files so that
the order is deterministic and won't cause spurious build errors when
files happen to be listed (and hence read) in different order on
e.g. add/remove the makefiles.

This correction broke after commit 4820a94 because the conversion to
a set with set() in order to remove duplicates came after sort() and
potentially altered the order of the elements.

This commit fixes makes sure findleaves.py is guaranteed to return
a sorted filename list without duplicates.

Change-Id: Ifd96d04d45641fe43d4cc4739f78a2d4d25cc212
e6b4e5b20ac8a3b01f1a99dd877a98c92036ce5e 13-Nov-2009 Jean-Baptiste Queru <jbq@google.com> eclair snapshot
fbe107a8b3a4536e9b9d6555c038578d294fa876 12-Aug-2009 Andrew Stadler <stadler@android.com> joeo here -- pesky findleaves.sh wasn't pruning directories.
4820a945a5c2de0158f2e339d09c13ed0b91c58d 07-Aug-2009 Joe Onorato <joeo@android.com> dedup findleaves output
d36e945e1a1990bb369c332b64b8bb873e734a13 07-Aug-2009 Joe Onorato <joeo@android.com> Sort the results of findleaves.

Hopefully this will fix the seemingly random build breakages.
dc1a728fb89677589bf3b5e3a5aab58164c9be6b 04-Aug-2009 Joe Onorato <joeo@android.com> Rewrite findleaves.sh in python

This cuts the make startup time by about 30 seconds. Python is faster
than bash in this case, and also we can now supply multiple directories
to prune, and skip the .repo directory, which is, uh, big.

This is from my mac laptop:

$ time build/tools/findleaves.sh --prune="./out" . Android.mk > /dev/null

real 0m29.186s
user 0m0.550s
sys 0m5.897s

$ time build/tools/findleaves.py --prune="./out" . Android.mk > /dev/null

real 0m4.701s
user 0m0.645s
sys 0m1.294s

$ time build/tools/findleaves.py --prune="./out" --prune="./.repo" . Android.mk > /dev/null
real 0m0.176s
user 0m0.094s
sys 0m0.080s