Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- INSTALL_DIR=~/dev/qt5-qnx
- QT_CONFIG="-nomake examples -nomake demos -nomake tests -opensource -confirm-license -release -no-accessibility -qt-libpng -qt-libjpeg -qt-pcre -no-widgets"
- QT_BB_CONFIG="-xplatform blackberry-armv7le-qcc -opengl es2"
- MODULES=(base jsbackend declarative multimedia graphicaleffects)
- BBNDK_DIR=~/dev/bbndk-gold
- #rm -rf $INSTALL_PATH
- function failure {
- echo -e "\033[1m$qtmod:\033[0m \E[31m$1"
- exit 1
- }
- for mod in ${MODULES[*]}
- do
- eval ". /${BBNDK_DIR}/bbndk-env.sh"
- echo -e "Installing \033[1m$mod\033[0m module..."
- qtmod="qt$mod"
- # Remove old module
- # TODO: Just update
- #echo "Removing old module..."
- #rm -rf $qtmod
- if [ ! -d "$qtmod" ]; then
- echo "Checking out from git..."
- git clone git://gitorious.org/qt/${qtmod}.git
- [ $? -ne 0 ] && failure "Git chechout failed!"
- cd $qtmod
- else
- cd $qtmod
- git pull
- [ $? -ne 0 ] && failure "git pull failed"
- fi
- echo "Configuring..."
- if [ $mod == "base" ]; then
- ./configure -prefix $INSTALL_DIR $QT_BB_CONFIG $QT_CONFIG
- [ $? -ne 0 ] && failure "configure failed"
- else
- eval "$INSTALL_DIR/bin/qmake"
- [ $? -ne 0 ] && failure "qmake failed"
- fi
- echo "Building module..."
- make -j5
- [ $? -ne 0 ] && failure "building failed"
- echo "Installing module..."
- make install
- [ $? -ne 0 ] && failure "install failed"
- cd ..
- echo
- done
Advertisement
Add Comment
Please, Sign In to add comment