diff options
author | Daniel Burrows <dburrows@debian.org> | 2010-04-26 22:00:21 -0700 |
---|---|---|
committer | Daniel Burrows <dburrows@debian.org> | 2010-04-26 22:00:21 -0700 |
commit | eb44c6e9eba49990460c4c0f69a8fb4e5da3e3d3 (patch) | |
tree | 3ae9da6d7c1908976357eea9c08ebb8749051703 /SConstruct | |
parent | 50c087c2474f12c23a72b25f3ef8c31a3bcde1e4 (diff) | |
download | aptitude-eb44c6e9eba49990460c4c0f69a8fb4e5da3e3d3.tar.gz |
Add an SConscript file for the po/ directory.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -102,6 +102,10 @@ for variant_env in envs.programs.AllVariantEnvs(): Exit(1) Default(aptitude) +# De-setify the list of sources. +all_aptitude_srcs = list(all_aptitude_srcs) +Export('all_aptitude_srcs') + # NB: I know because of how the variant directories are set up that we # always have the same number of entries in the two lists. for cppunit_tests_env, boost_tests_env in zip(envs.cppunit_tests.AllVariantEnvs(), envs.boost_tests.AllVariantEnvs()): @@ -122,6 +126,13 @@ Alias('docs', 'doc-html') Alias('docs', 'doc-text') Alias('docs', 'doc-man') +###### Build the gettext translation files ###### +po_env = envs.base +Export('po_env') +# No variant_dir because the pofile workflow requires the outputs to +# be in the source directory and in distributed archives. +SConscript(['po/SConscript']) + # Don't generate the "dist" stuff unless it's been explicitly # requested. This allows "dist" to build all targets with '.' @@ -131,3 +142,7 @@ if 'dist' in COMMAND_LINE_TARGETS: scons_args = [ '--variants=all', '.', '-j', GetOption('num_jobs') ]) Alias('dist', archives) + + # Rebuild the pofiles *before* attempting to build the + # distribution archive. + po_env.Depends('dist', 'update-po') |