git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@953 626c5289-ae23-0410-ae9c-e8d60b6d4f22
20 lines
347 B
Python
Executable file
20 lines
347 B
Python
Executable file
#!/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()
|
|
|
|
|
|
|
|
|