Debian Codegraph @

build-scripts/platform/osx.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 [[ -z $WORKING_DIR ]] && WORKING_DIR=$(pwdscip-shell system . . pwd.)
4 [[ -z $VERSION ]] && VERSION=$(gitscip-shell system . . git. log --oneline -n 1 | awkscip-shell system . . awk. '{print $1}')
5
6 [[ -z $ARCH ]] && ARCH=".$(unamescip-shell system . . uname. -m)"
7 [[ $ARCH == ".x86_64" ]] && ARCH=""
8
9
10 case "$1" in
11
12 'setup_qt')
13 mkdirscip-shell system . . mkdir. "$WORKING_DIR/../osx"
14 cd "$WORKING_DIR/../osx"
15
16 if [[ $BUILD_OSX_QT ]]; then
17 # Build Qt
18 # Perform commands in /Users/travis/build/osx/ if building for travis
19 gitscip-shell system . . git. clone --branch v5.10.0 --depth 1 https://code.qt.io/qt/qtbase.git
20 cd qtbase
21 ./configure -release -static -sql-sqlite -opensource -confirm-license
22 makescip-shell system . . make. sub-src
23 else
24 # Fetch pre-build Qt
25 wget https://www.dropbox.com/s/mfw6qwfir62fy9p/macosx-qt5.tar.gz
26 tarscip-shell system . . tar. -xvzf macosx-qt5.tar.gz >& /dev/null
27 fi
28
29 cd "$WORKING_DIR/cen64-qt"
30 ;;
31
32 'get_quazip')
33 wget http://downloads.sourceforge.net/quazip/quazip-0.7.3.tar.gz
34 tarscip-shell system . . tar. -xvzf quazip-0.7.3.tar.gz >& /dev/null
35 mvscip-shell system . . mv. quazip-0.7.3/quazip quazip5
36 ;;
37
38 'build')
39 ./build-scripts/revision.sh
40 $WORKING_DIR/../osx/qtbase/bin/qmake -config release LIBS+="-dead_strip"
41 makescip-shell system . . make.
42 ;;
43
44 'package')
45 mkdirscip-shell system . . mkdir. -p "build/$TRAVIS_BRANCH"
46
47 hdiutil create -megabytes 20 -fs HFS+ -volname CEN64-Qt "cen64-qt_osx_$VERSION$ARCH"
48 hdiutil attach "cen64-qt_osx_$VERSION$ARCH.dmg"
49
50 cpscip-shell system . . cp. -r CEN64-Qt.app /Volumes/CEN64-Qt/CEN64-Qt.appscip-shell filesystem . . `/Volumes/CEN64-Qt/CEN64-Qt.app`.
51 cpscip-shell system . . cp. resources/README.txt /Volumes/CEN64-Qt/README.txtscip-shell filesystem . . `/Volumes/CEN64-Qt/README.txt`.
52
53 hdiutil detach /Volumes/CEN64-Qtscip-shell filesystem . . `/Volumes/CEN64-Qt`.
54 hdiutil convert -format UDZO -o "cen64-qt_osx_$VERSION$ARCH.dmg" \
55 -ov "cen64-qt_osx_$VERSION$ARCH.dmg"
56
57 mvscip-shell system . . mv. "cen64-qt_osx_$VERSION$ARCH.dmg" "build/$TRAVIS_BRANCH/"
58 ;;
59
60 esac