dropshell/make_createagent.sh
Your Name 9eb9707c2e
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled
Can now create local agent files.
2025-05-17 10:12:57 +12:00

20 lines
460 B
Bash
Executable File

#!/bin/bash
set -e
# This script creates two files:
# src/utils/createagent.hpp
# src/utils/createagent.cpp
#
SCRIPT_DIR=$(dirname "$0")
# check if dehydrate is installed
if ! command -v dehydrate &> /dev/null; then
echo "dehydrate could not be found - installing"
curl -fsSL https://gitea.jde.nz/public/dehydrate/releases/download/latest/install.sh | bash
fi
SCRIPT_DIR=$(dirname "$0")
dehydrate "${SCRIPT_DIR}/agent" "${SCRIPT_DIR}/src/autogen"