diff --git a/gen_locale.sh b/gen_locale.sh
index 77c733109748595704caa2006970dfc708065fdf..1417855a2c42430bd233c774ea32474cc27ba41c 100755 (executable)
--- a/gen_locale.sh
+++ b/gen_locale.sh
error=0
for f in locale/??/LC_MESSAGES; do
echo -n "* merging $f/messages.po: "
error=0
for f in locale/??/LC_MESSAGES; do
echo -n "* merging $f/messages.po: "
- msgmerge $f/messages.po locale/messages.po --output-file=$f/messages.po.new &> /dev/null
-
+ [ -f $f/messages.po ] && msgmerge $f/messages.po locale/messages.po --output-file=$f/messages.po.new &> /dev/null
+
+ # Do an extra check for dummy dir 'locale/en/LC_MESSAGES'
+ if [ $? -ne 0 ]; then
+ [ "$f" == "locale/en/LC_MESSAGES" ] && /bin/true
+ fi
+
if [ $? -eq 0 ]; then
echo "done";
else
if [ $? -eq 0 ]; then
echo "done";
else