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>
Tue, 13 Oct 2015 23:14:57 +0000 (16:14 -0700)
commit57a64e015c0dd670f9adf5a2016526678ce96a1e
tree3fc03651106d774fea3e16d9e1fca70ae5061884
parent7a74e5ee0e6c41395493d9259ccfff80717a4eaf
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