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:
parent
85d3e9688e
commit
c076d135e7
1 changed files with 6 additions and 2 deletions
|
@ -61,6 +61,7 @@ import re
|
||||||
Import('halibut env build_chm')
|
Import('halibut env build_chm')
|
||||||
|
|
||||||
env.Append(ENV = {'PATH' : os.environ['PATH']})
|
env.Append(ENV = {'PATH' : os.environ['PATH']})
|
||||||
|
env['HALIBUT'] = halibut
|
||||||
|
|
||||||
build_dir = Dir(GetBuildPath('.')).abspath
|
build_dir = Dir(GetBuildPath('.')).abspath
|
||||||
|
|
||||||
|
@ -81,7 +82,10 @@ if build_chm:
|
||||||
Copy(build_dir, '${SOURCE.dir}/../style.css'),
|
Copy(build_dir, '${SOURCE.dir}/../style.css'),
|
||||||
Copy(build_dir, '${SOURCE.dir}/chmlink.js'),
|
Copy(build_dir, '${SOURCE.dir}/chmlink.js'),
|
||||||
Copy(build_dir, '${SOURCE.dir}/nsis.hhp'),
|
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
|
hhc_action
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
@ -110,7 +114,7 @@ else:
|
||||||
html_builder = Builder(
|
html_builder = Builder(
|
||||||
action = [
|
action = [
|
||||||
Copy(build_dir, '${SOURCE.dir}/../style.css'),
|
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)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue