1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00
irssi/file2header.sh
Timo Sirainen b71db0acb9 use const char *
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@485 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-17 01:47:51 +00:00

6 lines
128 B
Bash
Executable File

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