OSDN Git Service

Add all-named-(dirs|files)-under and related
authorDan Willemsen <dwillemsen@google.com>
Mon, 12 Oct 2015 22:26:52 +0000 (15:26 -0700)
committerDan Willemsen <dwillemsen@google.com>
Mon, 12 Oct 2015 22:32:28 +0000 (15:32 -0700)
commit92f5fcc5b35889b6ba33c92e9065d421632f7175
tree9a5653efc0cf6cbcbd823bd648dc7c840263999c
parent6a8146f2a2286dd4be231c22f9d0465c94a3ab00
Add all-named-(dirs|files)-under and related

To consolidate the number of places that we're using 'find' in the tree,
add some more helpers:

  all-named-dirs-under
  all-subdir-named-dirs
  all-named-files-under
  all-subdir-named-files

This change also makes many of the current helpers use these helpers
instead of using their own implementation.

The 'dirs' helpers are using '-type d' so that they only output
directories. It's probably safe to use '-type f' for the files helpers,
but that increased the kati load time by ~20%.

Bug: 24204119
Change-Id: I3312e2fe8c146f10955e1d986ad15d9c8be494e1
core/definitions.mk