From 5be6a3e0389f41e993344b37371e81f7de35f58f Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 14 May 2025 23:57:30 +1200 Subject: [PATCH] .. --- make_createagent.sh | 30 +++++++++++++++++++++++++++++- src/utils/createagent.cpp | 19 ++++++++++++++++++- src/utils/createagent.hpp | 9 +++++++++ src/version.hpp.in | 8 ++++++++ 4 files changed, 64 insertions(+), 2 deletions(-) diff --git a/make_createagent.sh b/make_createagent.sh index 0457b7f..629e7d9 100755 --- a/make_createagent.sh +++ b/make_createagent.sh @@ -13,6 +13,15 @@ cat < "$SCRIPT_DIR/src/utils/createagent.hpp" #ifndef CREATEAGENT_HPP #define CREATEAGENT_HPP +/* + +CREATEAGENT.HPP IS AUTOMATICALLY GENERATED FROM make_createagent.sh, +and recreates the files in /agent/ on a remote server. + +DO NOT EDIT THIS FILE MANUALLY! Edit make_createagent.sh instead. + +*/ + #include namespace dropshell { @@ -35,6 +44,17 @@ cat < "$SCRIPT_DIR/src/utils/createagent.cpp" #include #include + +/* + +CREATEAGENT.CPP IS AUTOMATICALLY GENERATED FROM make_createagent.sh, +and recreates the files in /agent/ on a remote server. + +DO NOT EDIT THIS FILE MANUALLY! Edit make_createagent.sh instead. + +*/ + + namespace dropshell { struct AgentFile { @@ -94,4 +114,12 @@ find "$AGENT_SOURCE_FOLDER" -type f | while read -r file; do done # close the namespace dropshell. -echo "}; return 0;} // namespace dropshell" >> "$SCRIPT_DIR/src/utils/createagent.cpp" +cat <> "$SCRIPT_DIR/src/utils/createagent.cpp" + }; // agent_files defined. + + return 0; + } // end of load_agent_file_contents function. + +} // namespace dropshell + +CPPEOF diff --git a/src/utils/createagent.cpp b/src/utils/createagent.cpp index 0571b3a..94742e3 100644 --- a/src/utils/createagent.cpp +++ b/src/utils/createagent.cpp @@ -8,6 +8,17 @@ #include #include + +/* + +CREATEAGENT.CPP IS AUTOMATICALLY GENERATED FROM make_createagent.sh, +and recreates the files in /agent/ on a remote server. + +DO NOT EDIT THIS FILE MANUALLY! Edit make_createagent.sh instead. + +*/ + + namespace dropshell { struct AgentFile { @@ -572,4 +583,10 @@ autorestore() { _autocommandparse restore "$BACKUP_TEMP_PATH" "$@" } )AGENTFILE" }, -}; return 0;} // namespace dropshell + }; // agent_files defined. + + return 0; + } // end of load_agent_file_contents function. + +} // namespace dropshell + diff --git a/src/utils/createagent.hpp b/src/utils/createagent.hpp index e6f4f05..3dbb528 100644 --- a/src/utils/createagent.hpp +++ b/src/utils/createagent.hpp @@ -1,6 +1,15 @@ #ifndef CREATEAGENT_HPP #define CREATEAGENT_HPP +/* + +CREATEAGENT.HPP IS AUTOMATICALLY GENERATED FROM make_createagent.sh, +and recreates the files in /agent/ on a remote server. + +DO NOT EDIT THIS FILE MANUALLY! Edit make_createagent.sh instead. + +*/ + #include namespace dropshell { diff --git a/src/version.hpp.in b/src/version.hpp.in index 9769890..2a9cf89 100644 --- a/src/version.hpp.in +++ b/src/version.hpp.in @@ -1,5 +1,13 @@ #pragma once +/* + +version.hpp is automatically generated by the build system, from version.hpp.in. + +DO NOT EDIT VERSION.HPP! + +*/ + #include namespace dropshell {