aboutsummaryrefslogtreecommitdiff
path: root/mons_exe/embed_headers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mons_exe/embed_headers.sh')
-rwxr-xr-xmons_exe/embed_headers.sh10
1 files changed, 10 insertions, 0 deletions
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