Install all the cli tools from all the sub-directories (#6705)

* Install all the cli tools from all the sub-directories

* Satisfy pep8
This commit is contained in:
Jimmy Tang 2018-01-03 02:14:39 +00:00 committed by Adam J. Stewart
parent 8ed1c84539
commit ea6b6ef1ff

View File

@ -96,8 +96,13 @@ def install(self, spec, prefix):
make() make()
mkdirp(prefix.bin) mkdirp(prefix.bin)
for root, dirs, files in os.walk('bin'): for root, dirs, files in os.walk('.'):
for name in files: for name in files:
if name.endswith(".so") or name.endswith(".cc") \
or name.endswith(".pptx"):
continue
if "configure" is name:
continue
if os.access(join(root, name), os.X_OK): if os.access(join(root, name), os.X_OK):
install(join(root, name), prefix.bin) install(join(root, name), prefix.bin)