11 lines
290 B
Bash
Executable File
11 lines
290 B
Bash
Executable File
#!/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
|