aboutsummaryrefslogtreecommitdiff
path: root/quoteinitializer
diff options
context:
space:
mode:
authorN.N. <krzyszcz@users.sourceforge.net>2004-02-19 22:23:18 +0000
committerN.N. <krzyszcz@users.sourceforge.net>2004-02-19 22:23:18 +0000
commitd0f6986345970955d6390a6953c35babf587c262 (patch)
treeb9c55d804a317558da506f9655ff495856ef47d8 /quoteinitializer
parentd405128358369b5b7424c086c67345d12edfde7d (diff)
many small improvements in toxy, plustot added
svn path=/trunk/externals/miXed/; revision=1321
Diffstat (limited to 'quoteinitializer')
-rwxr-xr-xquoteinitializer13
1 files changed, 13 insertions, 0 deletions
diff --git a/quoteinitializer b/quoteinitializer
new file mode 100755
index 0000000..495eefe
--- /dev/null
+++ b/quoteinitializer
@@ -0,0 +1,13 @@
+#!/usr/bin/awk -f
+
+BEGIN\
+{
+ print "// Do not edit this file (edit \""ARGV[1]"\", and run \"make\").\n"
+ if (ARGC > 2) { print ARGV[2]; ARGC = 2 }
+}
+
+{
+ gsub("\\\\", "\\\\");
+ gsub("\\\"", "\\\"");
+ print "\""$0"\\n\""
+}