Commit 89b71263 authored by Claudio Valerio's avatar Claudio Valerio

update release script to generate qm file

parent 14c6832d
...@@ -14,14 +14,16 @@ ...@@ -14,14 +14,16 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# --------------------------------------------------------------------- # ---------------------------------------------------------------------
BASE_TROLLTECH_DIRECTORY=/usr/local/Trolltech/Qt-4.7.3
# Executables # Executables
QMAKE="/usr/local/Trolltech/Qt-4.7.3/bin/qmake" QMAKE=$BASE_TROLLTECH_DIRECTORY/bin/qmake
MACDEPLOYQT=/usr/local/Trolltech/Qt-4.7.3/bin/macdeployqt MACDEPLOYQT=$BASE_TROLLTECH_DIRECTORY/bin/macdeployqt
DMGUTIL="`pwd`/../Sankore-ThirdParty/refnum/dmgutil/dmgutil.pl" DMGUTIL="`pwd`/../Sankore-ThirdParty/refnum/dmgutil/dmgutil.pl"
DSYMUTIL=/usr/bin/dsymutil DSYMUTIL=/usr/bin/dsymutil
STRIP=/usr/bin/strip STRIP=/usr/bin/strip
PLISTBUDDY=/usr/libexec/PlistBuddy PLISTBUDDY=/usr/libexec/PlistBuddy
ICEBERG=/usr/local/bin/freeze ICEBERG=/usr/local/bin/freeze
LRELEASE=$BASE_TROLLTECH_DIRECTORY/bin/lrelease
# Directories # Directories
BUILD_DIR="build/macx/release" BUILD_DIR="build/macx/release"
...@@ -69,7 +71,7 @@ checkExecutable "$DSYMUTIL" ...@@ -69,7 +71,7 @@ checkExecutable "$DSYMUTIL"
checkExecutable "$STRIP" checkExecutable "$STRIP"
checkExecutable "$PLISTBUDDY" checkExecutable "$PLISTBUDDY"
checkExecutable "$ICEBERG" checkExecutable "$ICEBERG"
checkExecutable "$LRELEASE"
# delete the build directory # delete the build directory
notify "Cleaning ..." notify "Cleaning ..."
...@@ -86,6 +88,8 @@ $QMAKE_CMD ...@@ -86,6 +88,8 @@ $QMAKE_CMD
notify "Compiling ..." notify "Compiling ..."
make -j4 release make -j4 release
$LRELEASE "Sankore_3.1.pro"
VERSION=`cat "$BUILD_DIR/version"` VERSION=`cat "$BUILD_DIR/version"`
if [ ! -f "$BUILD_DIR/version" ]; then if [ ! -f "$BUILD_DIR/version" ]; then
echo "version not found" echo "version not found"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment