23 lines
635 B
Bash
23 lines
635 B
Bash
#!/bin/bash
|
|
|
|
if [ ! "$1" ] || [ ! "$2" ] || [ ! "$3" ]; then
|
|
printf "Three parameters expected"
|
|
exit 1
|
|
fi
|
|
|
|
meta_name=$1
|
|
# TODO: programmatically produce java output name based on meta file name
|
|
java_output=$2
|
|
folder=$3
|
|
|
|
meta_file_name=${meta_name}.txt
|
|
header_file="${meta_name}_generated.h"
|
|
|
|
|
|
java -DSystemOut.name=logs/gen_live_documentation \
|
|
-jar ../java_tools/ConfigDefinition.jar \
|
|
-definition $folder/$meta_file_name \
|
|
-cache_zip_file tunerstudio/generated/cache.zip \
|
|
-cache . \
|
|
-java_destination ../java_console/models/src/main/java/com/rusefi/config/generated/$java_output \
|
|
-c_destination $folder/${header_file} |