Skip to content

Commit

Permalink
Merge pull request mavlink#6303 from DonLakeFlyer/TravisTarball
Browse files Browse the repository at this point in the history
Simpler script
  • Loading branch information
DonLakeFlyer authored Apr 4, 2018
2 parents 4fcb0be + 9967386 commit ff1ecf4
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions deploy/MakeQtTravisTarball.sh
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
#!/bin/bash -x

if [[ $# -eq 0 ]]; then
echo 'MakeQtTravisTarball.sh QtDirectory QtFullVersion QtBaseVersion BuildType'
exit 1
if [ $# -ne 2 ]; then
echo 'MakeQtTravisTarball.sh QtDirectory BuildType'
exit 1
fi

QT_DIRECTORY=$1
if [ ! -d ${QT_DIRECTORY} ]; then
echo 'Specify directory for Qt Directory.'
exit 1
echo 'Specify directory for Qt Directory to copy from.'
exit 1
fi

QT_FULL_VERSION=$2
if [ ! -d ${QT_DIRECTORY}/${QT_FULL_VERSION} ]; then
echo 'Qt version directory not found'
exit 1
fi

QT_BASE_VERSION=$3
QT_FULL_VERSION=5.9.3
QT_BASE_VERSION=5.9

QT_BUILD_TYPE=$4
QT_BUILD_TYPE=$2
if [ ! -d ${QT_DIRECTORY}/${QT_FULL_VERSION}/${QT_BUILD_TYPE} ]; then
echo 'Qt build type directory not found'
exit 1
echo 'Qt build type directory not found. Specify example: clang_62'
exit 1
fi

mkdir -p Qt${QT_BASE_VERSION}-${QT_BUILD_TYPE}/${QT_FULL_VERSION}/${QT_BUILD_TYPE}
Expand Down

0 comments on commit ff1ecf4

Please sign in to comment.