aboutsummaryrefslogtreecommitdiff
path: root/quoteinitializer
blob: 6d4716d97759964977b60d26c400ce4bf9542f18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/gawk -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\""
}