update release script to generate qm file

preferencesAboutTextFull
Claudio Valerio 13 years ago
parent 14c6832df9
commit 89b71263c2
  1. 10
      release.macx.sh

@ -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"
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
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"

Loading…
Cancel
Save