1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-16 06:25:24 +00:00
irssi/utils/file2header.sh
2022-02-19 21:44:10 +01:00

6 lines
96 B
Bash
Executable File

#!/bin/sh
echo "const char *$2 ="
sed 's/\\/\\\\/g;s/"/\\"/g;s/^/\"/;s/$/\\n\"/' "$1"
echo ";"