mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
b4c0fb0a36
flags for enabling checking & saving hash files 1) flags --savehash --checkhash 2) kotlin dsl update config for python generator 3) update README.md
21 lines
469 B
Bash
Executable File
21 lines
469 B
Bash
Executable File
#!/bin/bash
|
|
|
|
scriptDir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
cd $scriptDir
|
|
|
|
config=$1
|
|
schemaDir=$2
|
|
outputDir=$3
|
|
|
|
optionalArgs=""
|
|
if [ "$#" -eq 4 ]; then
|
|
optionalArgs=$4
|
|
fi
|
|
|
|
if [ "$#" -eq 5 ]; then
|
|
optionalArgs="$4 $5"
|
|
fi
|
|
|
|
echo Executing api_generator with [config = $config] [schemaDir = $schemaDir] [outputDir = $outputDir] [optionalArgs = $optionalArgs]
|
|
python3 -m api_generator -c $config -s $schemaDir -o $outputDir $optionalArgs
|