nicer halibut scons code

should make a proper builder out of this

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6001 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2009-11-29 23:12:45 +00:00
parent 85d3e9688e
commit c076d135e7

View file

@ -61,6 +61,7 @@ import re
Import('halibut env build_chm')
env.Append(ENV = {'PATH' : os.environ['PATH']})
env['HALIBUT'] = halibut
build_dir = Dir(GetBuildPath('.')).abspath
@ -81,7 +82,10 @@ if build_chm:
Copy(build_dir, '${SOURCE.dir}/../style.css'),
Copy(build_dir, '${SOURCE.dir}/chmlink.js'),
Copy(build_dir, '${SOURCE.dir}/nsis.hhp'),
Action('cd "%s" && "%s" ${SOURCES.abspath}' % (build_dir, halibut[0].rfile())),
Action(
['${HALIBUT[0].abspath} ${SOURCES.abspath}'],
chdir = build_dir
),
hhc_action
]
)
@ -110,7 +114,7 @@ else:
html_builder = Builder(
action = [
Copy(build_dir, '${SOURCE.dir}/../style.css'),
Action('cd "%s" && "%s" ${SOURCES.abspath}' % (build_dir, halibut[0].rfile()))
Action(['${HALIBUT[0].abspath} ${SOURCES.abspath}'], chdir = build_dir)
]
)