pkg-utils.mk: add utility functions find*clauses and notfirstword
authorThomas De Schampheleire <patrickdepinguin+buildroot@gmail.com>
Thu, 21 Jun 2012 19:34:49 +0000 (19:34 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 23 Jun 2012 21:14:56 +0000 (23:14 +0200)
commit75f18de67e7bc7f1feb360eb4201a3c6d6773698
tree55619bc26f04d50d39c1d1d2f3746be0347dd2ed
parentf86391fc07731c26d96acec5f1d082378f9e494d
pkg-utils.mk: add utility functions find*clauses and notfirstword

This patch adds a few utility functions to pkg-utils.mk.

Functions finddirclauses and findfileclauses help in building a find command
that skips a set of directories and performs operations on a set of files.
This pattern can for example be used to keep certain files or directories from
being stripped, or to remove certain files from a package installation.

The notfirstword function is the inverse of the 'firstword' function in make:
it returns all but the first word.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/pkg-utils.mk