diff options
Diffstat (limited to 'utils/file2header.sh')
-rwxr-xr-x | utils/file2header.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/file2header.sh b/utils/file2header.sh new file mode 100755 index 00000000..f25ae13b --- /dev/null +++ b/utils/file2header.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +echo "const char *$2 =" +cat $1|sed 's/\\/\\\\/g'|sed 's/"/\\"/g'|sed 's/^/\"/'|sed 's/$/\\n\"/' +echo ";" |