ToolboxToolbox/DataForkToRez
2018-12-07 14:01:27 +08:00

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"