~cypheon/elfelli

ref: 81071c0ffe55c39496eb171e669897ac6e4bc98e elfelli/po/SConscript -rw-r--r-- 404 bytes
81071c0f — Johann Rudloff Explicitly specify destination for application binary. 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- Python -*-

from glob import glob

Import('env')

# Compatibility with earlier SCons versions:
if not hasattr(env, 'MOFiles'):
    env.MOFiles = env.MO

locales = map(lambda str: str[:-3], glob('*.po'))
for locale in locales:
    subdir = '/%s/LC_MESSAGES' % locale
    mo = env.MOFiles('locale/'+subdir+'/elfelli', locale)
    env.Install(env['destdir']+env['localedir']+subdir, mo)

Default('.')