*** empty log message ***

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@953 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-11-27 00:07:46 +00:00
commit 86098449dc
7 changed files with 265 additions and 0 deletions

View file

@ -0,0 +1,20 @@
#!/usr/local/bin/python
import string
f = open("wadhandler.pl")
data = f.read()
f.close()
data = string.replace(data,"\\", "\\\\")
data = string.replace(data,"\"", "\\\"")
data = string.replace(data,"\n", "\\n\\\n")
f = open("wad_perl_handler.c","w")
f.write("static char wad_perl_handler[] = \"")
f.write(data)
f.write("\";\n");
f.close()