create .mo links at configure time,

so that message catalogs can be found in build dir
This commit is contained in:
Yann Dirson 2004-09-04 12:17:03 +00:00
parent 90bb503e80
commit 800f904fdc
2 changed files with 34 additions and 0 deletions

17
configure vendored
View file

@ -16226,6 +16226,23 @@ fi
fi
#######################################################################
# Symlinks that allow message catalogs to be used from build tree #
#######################################################################
set -x
for lang in `cat po/LINGUAS`
do
mkdir -p po/$lang/LC_MESSAGES
rm -f po/$lang/LC_MESSAGES/*
for domain in `cat po/DOMAINS`
do
ln -s ../$domain.gmo po/$lang/LC_MESSAGES/$domain.mo
done
done
set +x
#######################################################################
# Data file substitution. #
#######################################################################

View file

@ -544,6 +544,23 @@ if test "x$lite" = "xno"; then
fi
#######################################################################
# Symlinks that allow message catalogs to be used from build tree #
#######################################################################
set -x
for lang in `cat po/LINGUAS`
do
mkdir -p po/$lang/LC_MESSAGES
rm -f po/$lang/LC_MESSAGES/*
for domain in `cat po/DOMAINS`
do
ln -s ../$domain.gmo po/$lang/LC_MESSAGES/$domain.mo
done
done
set +x
#######################################################################
# Data file substitution. #
#######################################################################