we need to fail if generator fails
This commit is contained in:
parent
4cc1c352c2
commit
3e2ae23166
|
@ -2,18 +2,25 @@
|
||||||
|
|
||||||
rm gen_live_documentation.log
|
rm gen_live_documentation.log
|
||||||
|
|
||||||
bash gen_live_documentation_one_file.sh ac_control AcControl.java
|
bash gen_live_documentation_one_file.sh ac_control AcControl.java controllers/actuators
|
||||||
|
[ $? -eq 0 ] || { echo "ERROR generating"; exit 1; }
|
||||||
|
|
||||||
bash gen_live_documentation_one_file.sh pid_state PidState.java
|
bash gen_live_documentation_one_file.sh pid_state PidState.java util/math
|
||||||
|
[ $? -eq 0 ] || { echo "ERROR generating"; exit 1; }
|
||||||
|
|
||||||
bash gen_live_documentation_one_file.sh engine_state EngineState.java
|
bash gen_live_documentation_one_file.sh engine_state EngineState.java controllers/algo
|
||||||
|
[ $? -eq 0 ] || { echo "ERROR generating"; exit 1; }
|
||||||
|
|
||||||
bash gen_live_documentation_one_file.sh trigger_central TriggerCentral.java
|
bash gen_live_documentation_one_file.sh trigger_central TriggerCentral.java controllers/trigger
|
||||||
|
[ $? -eq 0 ] || { echo "ERROR generating"; exit 1; }
|
||||||
|
|
||||||
bash gen_live_documentation_one_file.sh trigger_state TriggerState.java
|
bash gen_live_documentation_one_file.sh trigger_state TriggerState.java controllers/trigger
|
||||||
|
[ $? -eq 0 ] || { echo "ERROR generating"; exit 1; }
|
||||||
|
|
||||||
bash gen_live_documentation_one_file.sh wall_fuel_state WallFuelState.java
|
bash gen_live_documentation_one_file.sh wall_fuel_state WallFuelState.java controllers/algo
|
||||||
|
[ $? -eq 0 ] || { echo "ERROR generating"; exit 1; }
|
||||||
|
|
||||||
java -DSystemOut.name=gen_live_documentation \
|
java -DSystemOut.name=gen_live_documentation \
|
||||||
-cp ../java_tools/ConfigDefinition.jar \
|
-cp ../java_tools/ConfigDefinition.jar \
|
||||||
com.rusefi.ldmp.UsagesReader integration/LiveData.yaml
|
com.rusefi.ldmp.UsagesReader integration/LiveData.yaml
|
||||||
|
[ $? -eq 0 ] || { echo "ERROR generating"; exit 1; }
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ ! "$1" ] || [ ! "$2" ]; then
|
if [ ! "$1" ] || [ ! "$2" ] || [ ! "$3" ]; then
|
||||||
printf "Two parameters expected"
|
printf "Three parameters expected"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
meta_name=$1
|
meta_name=$1
|
||||||
# TODO: programmatically produce java output name based on meta file name
|
# TODO: programmatically produce java output name based on meta file name
|
||||||
java_output=$2
|
java_output=$2
|
||||||
|
folder=$3
|
||||||
|
|
||||||
meta_file_name=${meta_name}.txt
|
meta_file_name=${meta_name}.txt
|
||||||
header_file="${meta_name}_generated.h"
|
header_file="${meta_name}_generated.h"
|
||||||
|
@ -15,8 +16,8 @@ header_file="${meta_name}_generated.h"
|
||||||
|
|
||||||
java -DSystemOut.name=gen_live_documentation \
|
java -DSystemOut.name=gen_live_documentation \
|
||||||
-jar ../java_tools/ConfigDefinition.jar \
|
-jar ../java_tools/ConfigDefinition.jar \
|
||||||
-definition integration/$meta_file_name \
|
-definition $folder/$meta_file_name \
|
||||||
-cache_zip_file tunerstudio/generated/cache.zip \
|
-cache_zip_file tunerstudio/generated/cache.zip \
|
||||||
-cache . \
|
-cache . \
|
||||||
-java_destination ../java_console/models/src/main/java/com/rusefi/config/generated/$java_output \
|
-java_destination ../java_console/models/src/main/java/com/rusefi/config/generated/$java_output \
|
||||||
-c_destination controllers/generated/${header_file}
|
-c_destination $folder/${header_file}
|
Loading…
Reference in New Issue