diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2015-08-27 21:16:36 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2015-09-02 23:54:02 +0200 |
commit | 5a7691cc4fe5e19768f3999222323604b8ed53b5 (patch) | |
tree | dc74e1cc36137c0cd284fad37d0a96192d9daa70 | |
parent | 440dbe29577b7e6f71c91c21fab072464f110101 (diff) | |
download | clufter-5a7691cc4fe5e19768f3999222323604b8ed53b5.tar.gz clufter-5a7691cc4fe5e19768f3999222323604b8ed53b5.tar.xz clufter-5a7691cc4fe5e19768f3999222323604b8ed53b5.zip |
ccs-flatten/Makefile: agents do not always have trailing .sh
Cf. SAP{Database,Instance}.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r-- | __root__/ccs-flatten/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/__root__/ccs-flatten/Makefile b/__root__/ccs-flatten/Makefile index ed8d636..03bc014 100644 --- a/__root__/ccs-flatten/Makefile +++ b/__root__/ccs-flatten/Makefile @@ -49,8 +49,10 @@ ${SETUP_MAKEFILE}: $(wildcard ${SETUP_CFG}) | /dev/null $< > $@ metadata: - for f in $$(find ${ra_metadata} -maxdepth 1 -type f -name '*.sh' \ - -printf '%f\n'); do \ + for f in $$( \ + cd ${ra_metadata}; \ + ls -1 | xargs grep --exclude '*.metadata' --exclude 'ocf-*' -Fl -- meta-data \ + ); do \ /bin/bash ${ra_metadata}/$$f meta-data > $$f.${ra_metadata_ext}.tmp \ && test -s $$f.${ra_metadata_ext}.tmp \ && mv $$f.${ra_metadata_ext}{.tmp,} \ |