diff --git a/release.macx.sh b/release.macx.sh index 31eacf50..efa93363 100755 --- a/release.macx.sh +++ b/release.macx.sh @@ -14,14 +14,16 @@ # along with this program. If not, see . # --------------------------------------------------------------------- +BASE_TROLLTECH_DIRECTORY=/usr/local/Trolltech/Qt-4.7.3 # Executables -QMAKE="/usr/local/Trolltech/Qt-4.7.3/bin/qmake" -MACDEPLOYQT=/usr/local/Trolltech/Qt-4.7.3/bin/macdeployqt +QMAKE=$BASE_TROLLTECH_DIRECTORY/bin/qmake +MACDEPLOYQT=$BASE_TROLLTECH_DIRECTORY/bin/macdeployqt DMGUTIL="`pwd`/../Sankore-ThirdParty/refnum/dmgutil/dmgutil.pl" DSYMUTIL=/usr/bin/dsymutil STRIP=/usr/bin/strip PLISTBUDDY=/usr/libexec/PlistBuddy ICEBERG=/usr/local/bin/freeze +LRELEASE=$BASE_TROLLTECH_DIRECTORY/bin/lrelease # Directories BUILD_DIR="build/macx/release" @@ -69,7 +71,7 @@ checkExecutable "$DSYMUTIL" checkExecutable "$STRIP" checkExecutable "$PLISTBUDDY" checkExecutable "$ICEBERG" - +checkExecutable "$LRELEASE" # delete the build directory notify "Cleaning ..." @@ -86,6 +88,8 @@ $QMAKE_CMD notify "Compiling ..." make -j4 release +$LRELEASE "Sankore_3.1.pro" + VERSION=`cat "$BUILD_DIR/version"` if [ ! -f "$BUILD_DIR/version" ]; then echo "version not found"