mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
21 lines
546 B
Bash
Executable File
21 lines
546 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
SCRIPT="$0"
|
|
echo "# START SCRIPT: ${SCRIPT}"
|
|
|
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
|
|
if [[ "true" == "${SKIP_EXPORT_DOCS}" ]]; then
|
|
echo "Skipping doc exports. Note that docs generated by Windows may break paths as they have not yet been normalized to OS-specific paths."
|
|
exit 0
|
|
fi
|
|
|
|
N=4
|
|
(
|
|
for GENERATOR in $(java -jar ${executable} list --short --include all | sed -e 's/,/\'$'\n''/g')
|
|
do
|
|
((i=i%N)); ((i++==0)) && wait
|
|
./bin/utils/export_generator.sh ${GENERATOR} &
|
|
done
|
|
)
|