This commit is contained in:
@ -13,6 +13,15 @@ cat <<EOF > "$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 <string>
|
||||
|
||||
namespace dropshell {
|
||||
@ -35,6 +44,17 @@ cat <<CPPEOF > "$SCRIPT_DIR/src/utils/createagent.cpp"
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
/*
|
||||
|
||||
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 <<CPPEOF >> "$SCRIPT_DIR/src/utils/createagent.cpp"
|
||||
}; // agent_files defined.
|
||||
|
||||
return 0;
|
||||
} // end of load_agent_file_contents function.
|
||||
|
||||
} // namespace dropshell
|
||||
|
||||
CPPEOF
|
||||
|
Reference in New Issue
Block a user