summaryrefslogtreecommitdiff
path: root/file2header.sh
blob: f25ae13bc99da19bdf351dc77c1d95731f9480aa (plain)
1
2
3
4
5
#!/bin/sh

echo "const char *$2 ="
cat $1|sed 's/\\/\\\\/g'|sed 's/"/\\"/g'|sed 's/^/\"/'|sed 's/$/\\n\"/'
echo ";"