mirror of
https://github.com/elliotnunn/ToolboxToolbox.git
synced 2024-12-11 21:50:20 +00:00
11 lines
200 B
Bash
Executable File
11 lines
200 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [[ $# -lt 4 || $# -gt 5 ]]; then
|
|
echo "Usage: $0 IN OUT TYPE ID"
|
|
exit 1
|
|
fi
|
|
|
|
echo "data '$3' ($4, \"$5\") {" >> "$2"
|
|
xxd -p "$1" | sed s/^/\$\"/ | sed s/$/\"/ >> "$2"
|
|
echo "};" >> "$2"
|