diff --git a/bin/utils/export_docs_generators.sh b/bin/utils/export_docs_generators.sh index 57283b3ff59..a456f275f8f 100755 --- a/bin/utils/export_docs_generators.sh +++ b/bin/utils/export_docs_generators.sh @@ -10,7 +10,11 @@ if [[ "true" == "${SKIP_EXPORT_DOCS}" ]]; then exit 0 fi +N=4 +( for GENERATOR in $(java -jar ${executable} list --short --include all | sed -e 's/,/\'$'\n''/g') do - ./bin/utils/export_generator.sh ${GENERATOR} + ((i=i%N)); ((i++==0)) && wait + ./bin/utils/export_generator.sh ${GENERATOR} & done +) \ No newline at end of file