Files
GridFire/assets/static/const/format.sh
Emily Boudreaux 4b2f9a0097 feat(assets): setup assets for resource manager
assets are broken into static (compiled into the binary) and dynamic (handled by the resource manager). All static assets should define a meson.build, all dynamic assets must have handlers written in src/resource/resourceManager and resourceManagerTypes

BREAKING CHANGE:
2025-03-20 14:24:20 -04:00

11 lines
261 B
Bash
Executable File

#!/bin/sh
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <input_file> <output_file>"
exit 1
fi
input_file="$1"
output_file="$2"
printf 'const char embeddedConstants[] = R"(' > "$output_file"
cat "$input_file" >> "$output_file"
printf ')";\n' >> "$output_file"