From 4da7be39827ea5888ef9c97b1aadf61b0d76347c Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Fri, 7 Feb 2025 11:27:18 -0500 Subject: initial commit (lol) --- mons_exe/embed_headers.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 mons_exe/embed_headers.sh (limited to 'mons_exe/embed_headers.sh') diff --git a/mons_exe/embed_headers.sh b/mons_exe/embed_headers.sh new file mode 100755 index 0000000..fdbea13 --- /dev/null +++ b/mons_exe/embed_headers.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +rm -rf ./include/embedded/ +for file in $(find ./embed -type f); do + basepath="${file#*/*/}" + basedir="${basepath%/*}" + mkdir -p "./include/embedded/$basedir" + echo "Generating ./include/embedded/$basepath.h" + xxd -i "$file" "./include/embedded/$basepath.h" +done -- cgit v1.2.3