From 574f2748b0b95748f2187252a46a6fe95a8db807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 11 Mar 2010 17:22:31 +0100 Subject: [PATCH] Generate mo files on release. --- scripts/create-release.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/create-release.sh b/scripts/create-release.sh index fe19d09b7..0db7686ca 100755 --- a/scripts/create-release.sh +++ b/scripts/create-release.sh @@ -95,6 +95,18 @@ LC_ALL=C date -u > RELEASE-DATE-${version} # Building Documentation.txt LC_ALL=C w3m -dump Documentation.html > Documentation.txt +# Check for gettext support +if [ -d po ] ; then + GETTEXT=1 +else + GETTEXT=0 +fi + +# Generate mo files +if [ $GETTEXT -eq 1 ] ; then + ./scripts/generate-mo +fi + # Remove test directory from package to avoid Path disclosure messages # if someone runs /test/wui.php and there are test failures rm -rf test