diff --git a/build.sh b/build.sh index 4233d11..2a2b8b7 100644 --- a/build.sh +++ b/build.sh @@ -67,12 +67,17 @@ for mod in pipeline_core pipeline_ops pipeline_dist pipeline-sdlc showcase tenan fi done -# 7. SDLC pipeline-sdlc: regenerate CRUD from json -if [ -d "pkgs/pipeline-sdlc/json" ]; then - cd "pkgs/pipeline-sdlc/json" - "$cdir/py3/bin/xls2ui" -m ../models -o ../wwwroot pipeline-sdlc *.json 2>&1 | grep -c 'handle' | xargs -I{} echo " xls2ui: {} tables handled" - cd "$cdir" -fi +# 7. Regenerate CRUD from json for all pipeline modules +for mod in pipeline_core pipeline_ops pipeline_dist pipeline-sdlc; do + json_dir="pkgs/$mod/json" + models_dir="pkgs/$mod/models" + wwwroot_dir="pkgs/$mod/wwwroot" + if [ -d "$json_dir" ] && ls "$json_dir"/*.json >/dev/null 2>&1; then + cd "$json_dir" + "$cdir/py3/bin/xls2ui" -m "../models" -o "../wwwroot" "$mod" *.json 2>&1 | grep -c 'handle' | xargs -I{} echo " xls2ui $mod: {} tables" + cd "$cdir" + fi +done # 8. Link module wwwroot directories (symlinks from pkgs/)