summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2011-04-02 11:10:01 -0700
committerDaniel Burrows <dburrows@debian.org>2011-04-02 11:10:01 -0700
commit9343b6214a41e831a501ef7ce7b6981859445baa (patch)
tree2ac87048f274a8e7da2a93fd8fa2e8136ce165b7 /po
parentde851905685f3b874fee0978587e406e83c697a0 (diff)
downloadaptitude-9343b6214a41e831a501ef7ce7b6981859445baa.tar.gz
Nuke the scons build scripts.
These never worked out as well as I intended, and all indications were that they would be a maintenance burden...or just bitrot. Fully parallel builds are nice, but my builds are pretty quick on my 8-core box even with the artificial chokepoints that automake induces.
Diffstat (limited to 'po')
-rw-r--r--po/SConscript107
1 files changed, 0 insertions, 107 deletions
diff --git a/po/SConscript b/po/SConscript
deleted file mode 100644
index a9e0d80f..00000000
--- a/po/SConscript
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright (C) 2010 Daniel Burrows
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; see the file COPYING. If not, write to the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-# MA 02111-1307, USA.
-
-Import('all_aptitude_srcs', 'po_env')
-
-pofile_languages = [
- 'ar',
- 'ast',
- 'bs',
- 'ca',
- 'cs',
- 'da',
- 'de',
- 'dz',
- 'el',
- 'es',
- 'eu',
- 'fi',
- 'fr',
- 'gl',
- 'hu',
- 'it',
- 'ja',
- 'km',
- 'ku',
- 'lt',
- 'mr',
- 'nb',
- 'ne',
- 'nl',
- 'nn',
- 'pl',
- 'pt',
- 'pt_BR',
- 'ro',
- 'ru',
- 'sk',
- 'sv',
- 'th',
- 'tl',
- 'tr',
- 'uk',
- 'vi',
- 'zh_CN',
- 'zh_TW',
- ]
-
-def BuildPoFile(env, lang,
- potfile = 'aptitude.pot',
- potfile_sig = 'aptitude.pot.sig'):
- '''Build the po file for the given language, compile it to a mo
-file, and install the compiled form. Also distribute *both* the po
-file and the mo file.'''
- po_file = env.Msgmerge(lang, potfile)
- # TODO: the Precious() call should be in the pofile builder, if
- # that's even possible?
- env.Precious(po_file)
- mo_file = env.Msgfmt(po_file)
- po_env.Dist(po_file, mo_file)
- env.Install('$LOCALEDIR/$LANG/LC_MESSAGES', LANG = lang)
- env.Alias('update-po', mo_file)
-
- # Arrange to build the pofile iff the potfile signature changes.
- env.Depends(po_file, potfile_sig)
- env.Ignore(po_file, potfile)
-
- return mo_file
-
-aptitude_pot = po_env.Xgettext('aptitude.pot', all_aptitude_srcs)
-po_env.Dist(aptitude_pot)
-
-# Reuse the clunky but functional POT-Creation-Date stripping script
-# from gettext.
-removepotdate = po_env.Command('remove-potcdate.sed',
- 'remove-potcdate.sin',
- ["sed -e '/^#/d' $SOURCE > ${TARGET}.new",
- Move('${TARGET}', '${TARGET}.new')])
-
-aptitude_pot_sig = po_env.Command('aptitude.pot.sig',
- aptitude_pot,
- ['sed -f $REMOVEPOTDATE $SOURCE | sha512sum > ${TARGET}.new',
- Move('${TARGET}', '${TARGET}.new')],
- REMOVEPOTDATE = removepotdate)
-
-# I seriously considered making aptitude.pot a default target, but
-# that would pollute the version control history with a bunch of
-# relatively meaningless changes. Better to only build it on request.
-po_env.Alias('update-po', aptitude_pot)
-
-
-# Rules relating to keeping the translations up-to-date.
-for lang in pofile_languages:
- BuildPoFile(po_env, lang, aptitude_pot, aptitude_pot_sig)