------------------------------------------------------------ revno: 2661 committer: poy <p...@123gen.com> branch nick: trunk timestamp: Sun 2011-10-30 16:48:57 +0100 message: build translated help files in language-specific dirs modified: help/SConscript
-- lp:dcplusplus https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk Your team Dcplusplus-team is subscribed to branch lp:dcplusplus. To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'help/SConscript' --- help/SConscript 2011-01-05 20:22:31 +0000 +++ help/SConscript 2011-10-30 15:48:57 +0000 @@ -87,7 +87,7 @@ # additional dependencies (that have to be built before the help file) CHM_dependencies = ['addendum.txt', 'cshelp.h'] -from build_util import gen_po_name, get_lcid, nixify, scoped_cmd +from build_util import gen_po_name, get_lcid, nixify import filecmp from gen_toc import gen_toc from set_hhp_locale import set_hhp_locale @@ -97,12 +97,6 @@ # define our CHM builder def gen_CHM(target, source, env): - # create the temporary build directory - build_dir = 'build/help' - build_path = build_dir + '/' - env.Execute([Delete(build_dir), Mkdir(build_dir)]) - dir_cleaner = scoped_cmd(lambda: env.Execute(Delete(build_dir))) - # find the translation file po_node = None for node in source: @@ -121,6 +115,11 @@ lang = os.path.basename(po_node.path).replace('.po', '') lcid = get_lcid(lang) + # create the temporary build directory + build_dir = 'build/help/' + lang + build_path = build_dir + '/' + env.Execute([Delete(build_dir), Mkdir(build_dir)]) + if env['webhelp']: # create the dir for localized web help files web_dir = 'build/webhelp/' + lang.replace('_', '-')
_______________________________________________ Mailing list: https://launchpad.net/~linuxdcpp-team Post to : linuxdcpp-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~linuxdcpp-team More help : https://help.launchpad.net/ListHelp