12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #!/bin/bash
- set -e
- CURDIR=$PWD
- SCRIPTDIR=$(dirname $0)
- cd $SCRIPTDIR
- SCRIPTDIR=$PWD
- cd $CURDIR
- if [[ ! "$OUTPUT_FILE_NAME" == "/"* ]]; then
- cd $(dirname $OUTPUT_FILE_NAME)
- OUTPUT_FILE_NAME=$PWD/$OUTPUT_FILE_NAME
- cd $CURDIR
- fi
- $SCRIPTDIR/../scripts/create_tizen_gbs_conf -p "$GBS_PROFILE_NAME" -r "$GBS_ROOT_DIR" -b "$BASE_REPO" -m "$MAIN_REPO" -q "$QT_REPO" -f "$SCRIPTDIR/gbs.conf.template" -o "$OUTPUT_FILE_NAME"
- source $SCRIPTDIR/../common/qt_for_tizen_version
- if [ "$DELETE_GBS_CACHE" == "1" ]; then
- CACHE_DIR=$(find $GBS_ROOT_DIR/local/cache -name 'qt*' 2> /dev/null | head -1)
- if [ "$CACHE_DIR" != "" ]; then
- rm -rf $(dirname "$CACHE_DIR")
- fi
- rm -rf $GBS_ROOT_DIR/local/order/.repo.cache
- fi
- DUMMY_NAME=qt5Dummy
- if [ "$ROOTSTRAP_WITHOUT_QT" == "1" ]; then
- DUMMY_NAME=qt5DummyWithoutQt
- GBS_PROFILE_NAME="$GBS_PROFILE_NAME""_crosscompile"
- fi
- rm -rf $DUMMY_NAME
- mkdir -p $DUMMY_NAME/packaging
- cp $DUMMY_NAME.spec $DUMMY_NAME/packaging
- cd $DUMMY_NAME
- git init .
- git config user.email qtfortizen@tizen.org
- git add .
- git commit -m "init"
- git checkout -b $QT_FOR_TIZEN_PACKAGING_BRANCH
- gbs --conf $OUTPUT_FILE_NAME --debug build -A $BUILD_ARCHITECTURE -P $GBS_PROFILE_NAME --clean
- cd ..
- rm -rf $DUMMY_NAME
- cd $CURDIR
|