forked from loafle/openapi-generator-original
Generate docs on 4 threads (#7586)
This commit is contained in:
parent
c0553ddc37
commit
ae95c2b19b
@ -10,7 +10,11 @@ if [[ "true" == "${SKIP_EXPORT_DOCS}" ]]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
N=4
|
||||||
|
(
|
||||||
for GENERATOR in $(java -jar ${executable} list --short --include all | sed -e 's/,/\'$'\n''/g')
|
for GENERATOR in $(java -jar ${executable} list --short --include all | sed -e 's/,/\'$'\n''/g')
|
||||||
do
|
do
|
||||||
./bin/utils/export_generator.sh ${GENERATOR}
|
((i=i%N)); ((i++==0)) && wait
|
||||||
|
./bin/utils/export_generator.sh ${GENERATOR} &
|
||||||
done
|
done
|
||||||
|
)
|
Loading…
x
Reference in New Issue
Block a user