fix(resources): first recursive resource support

However, this also means we need recursive builders, which is tottally
unsupported for now ... .

This means we have to generalize rbuild generation ... could be easy.
Lets see
This commit is contained in:
Sebastian Thiel
2015-03-10 11:04:25 +01:00
parent 3b7e63f286
commit 35bd1c3e9c
3 changed files with 12 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ api_base=${2:?Second argument must be the destination path to which to copy the
(cd ${repo_path} && git pull --ff-only) || exit $?
for json_path in `cd ${repo_path} && find . -type f -name "*-api.json"`; do
for json_path in `cd ${repo_path} && find . -type f -name "*-api.json" -or -name "*-gen.go"`; do
dest=${api_base}/`dirname ${json_path}`
mkdir -p ${dest} || exit $?
cp ${repo_path}/${json_path} ${dest} || exit $?