summaryrefslogtreecommitdiff
path: root/file2header.sh
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>1999-09-03 14:27:29 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>1999-09-03 14:27:29 +0000
commit770ae4596d3e826c63e8c9fa441d65bd0889f03c (patch)
tree1b1a77a220278cd77da9bfd7958f6ea0a498165b /file2header.sh
parent2d97cd3cc42428155df573e5002a0359da3cdfc1 (diff)
downloadirssi-770ae4596d3e826c63e8c9fa441d65bd0889f03c.zip
Initial revision
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'file2header.sh')
-rwxr-xr-xfile2header.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/file2header.sh b/file2header.sh
new file mode 100755
index 00000000..c3729d37
--- /dev/null
+++ b/file2header.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+echo "gchar *default_config ="
+cat $1|sed 's/\\/\\\\/g'|sed 's/"/\\"/g'|sed 's/^/\"/'|sed 's/$/\\n\"/'
+echo ";"