properly quote build settings, even if they come from the command line

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4648 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2006-04-07 15:33:48 +00:00
parent 004353c8c1
commit 936aa142e0

View file

@ -153,7 +153,7 @@ defines_h = open(File('#Source/defines.h').abspath, 'w')
for i in defenv['NSIS_CPPDEFINES']:
if type(i) is not str:
sconf_h.write('#define %s %s\n' % (i[0], i[1]))
if type(i[1]) is int:
if str(i[1])[0] != '"':
defines_h.write('definedlist.add("%s", "%s");\n' % (i[0], i[1]))
else:
defines_h.write('definedlist.add("%s", %s);\n' % (i[0], i[1]))