scons: make "scons install" succeed without msgfmt

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14490 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2006-07-20 18:57:29 +00:00
parent 703448db7a
commit 6c36d0444c

View File

@ -2297,13 +2297,13 @@ if build_po:
if env.has_key('languages'):
languages = env.make_list(env['lanauges'])
# use defulat msgfmt
gmo_files = []
if not env['MSGFMT']:
print 'msgfmt does not exist. Can not process po files'
else:
# create a builder
env['BUILDERS']['Transfiles'] = Builder(action='$MSGFMT $SOURCE -o $TARGET',suffix='.gmo',src_suffix='.po')
#
gmo_files = []
for f in transfiles:
# get filename
fname = os.path.split(f)[1]