diff --git a/scripts/generate-modbus-register-doc.py b/scripts/generate-modbus-register-doc.py index ce8c0010b..416de6175 100644 --- a/scripts/generate-modbus-register-doc.py +++ b/scripts/generate-modbus-register-doc.py @@ -104,7 +104,7 @@ print("# Entity/Register Mapping") print() print("!!! note") print() -print(" This file has been auto-generated. Do not edit.") +print(" This file has been auto-generated. Do not modify.") print() for device_type, devices in grouped_by(entities, device_type_key): diff --git a/scripts/generate_csv_and_headers.sh b/scripts/generate_csv_and_headers.sh index e78ee9b6c..d1b811ddb 100755 --- a/scripts/generate_csv_and_headers.sh +++ b/scripts/generate_csv_and_headers.sh @@ -2,9 +2,7 @@ # # Builds the dump CSV files, modbus headers and documentation. -# To be run before a release with -# sh ./scripts/generate_csv_and_headers.sh -# +# Called by /scripts/generate_csv_and_headers.sh # build dummy modbus_entity_parameters.hpp so it compiles cat >./src/modbus_entity_parameters.hpp <./src/modbus_entity_parameters.hpp < ../src/modbus_entity_parameters.hpp' -# from the "scripts" folder -# OR -# run `sh ./scripts/update_modbus_registers.sh` from the root folder +# Called by /scripts/generate_csv_and_headers.sh import fileinput import csv @@ -118,7 +112,7 @@ cpp_file_template = Template('''#include "modbus.h" #include "emsdevice.h" /* - * This file is auto-generated by the update_modbus_registers.sh script. Do not modify. + * This file is auto-generated. Do not modify. */ // clang-format off diff --git a/src/modbus_entity_parameters.hpp b/src/modbus_entity_parameters.hpp index eeff2f5d1..ce6ab4701 100644 --- a/src/modbus_entity_parameters.hpp +++ b/src/modbus_entity_parameters.hpp @@ -2,7 +2,7 @@ #include "emsdevice.h" /* - * This file is auto-generated by the update_modbus_registers.sh script. Do not modify. + * This file is auto-generated. Do not modify. */ // clang-format off