2020-07-09 07:27:20 -07:00
|
|
|
#!/bin/bash
|
2020-06-18 09:41:14 -07:00
|
|
|
|
|
|
|
rm gen_live_documentation.log
|
|
|
|
|
2023-06-17 13:35:36 -07:00
|
|
|
cd ../java_tools
|
2023-06-17 19:26:31 -07:00
|
|
|
./gradlew :config_definition_base:shadowJar
|
2023-06-17 14:16:01 -07:00
|
|
|
./gradlew :enum_to_string:shadowJar
|
2023-06-17 13:35:36 -07:00
|
|
|
cd ../firmware
|
|
|
|
|
2021-10-23 17:18:09 -07:00
|
|
|
java -DSystemOut.name=logs/gen_live_documentation \
|
2023-06-17 19:26:31 -07:00
|
|
|
-cp ../java_tools/configuration_definition_base/build/libs/config_definition_base.jar \
|
2022-10-28 00:44:39 -07:00
|
|
|
com.rusefi.ldmp.LiveDataProcessor integration/LiveData.yaml
|
2021-10-16 17:43:44 -07:00
|
|
|
[ $? -eq 0 ] || { echo "ERROR generating"; exit 1; }
|
2021-11-28 14:04:46 -08:00
|
|
|
|
2023-06-17 14:03:38 -07:00
|
|
|
java -DSystemOut.name=logs/gen_java_enum -cp ../java_tools/enum_to_string/build/libs/enum_to_string.jar com.rusefi.ToJavaEnum -enumInputFile console/binary/generated/live_data_ids.h -outputPath ../java_console/io/src/main/java/com/rusefi/enums
|
2023-01-15 02:55:54 -08:00
|
|
|
[ $? -eq 0 ] || { echo "ERROR generating live data ids"; exit 1; }
|
2023-07-03 20:33:19 -07:00
|
|
|
|
|
|
|
# live_data_ids.h is generated above so order of operations is important here!
|
|
|
|
|
|
|
|
./gen_enum_to_string.sh
|