Commit 99673865 authored by DonLakeFlyer's avatar DonLakeFlyer

Simpler script

parent 55d5d911
#!/bin/bash -x #!/bin/bash -x
if [[ $# -eq 0 ]]; then if [ $# -ne 2 ]; then
echo 'MakeQtTravisTarball.sh QtDirectory QtFullVersion QtBaseVersion BuildType' echo 'MakeQtTravisTarball.sh QtDirectory BuildType'
exit 1 exit 1
fi fi
QT_DIRECTORY=$1 QT_DIRECTORY=$1
if [ ! -d ${QT_DIRECTORY} ]; then if [ ! -d ${QT_DIRECTORY} ]; then
echo 'Specify directory for Qt Directory.' echo 'Specify directory for Qt Directory to copy from.'
exit 1 exit 1
fi fi
QT_FULL_VERSION=$2 QT_FULL_VERSION=5.9.3
if [ ! -d ${QT_DIRECTORY}/${QT_FULL_VERSION} ]; then QT_BASE_VERSION=5.9
echo 'Qt version directory not found'
exit 1
fi
QT_BASE_VERSION=$3
QT_BUILD_TYPE=$4 QT_BUILD_TYPE=$2
if [ ! -d ${QT_DIRECTORY}/${QT_FULL_VERSION}/${QT_BUILD_TYPE} ]; then if [ ! -d ${QT_DIRECTORY}/${QT_FULL_VERSION}/${QT_BUILD_TYPE} ]; then
echo 'Qt build type directory not found' echo 'Qt build type directory not found. Specify example: clang_62'
exit 1 exit 1
fi fi
mkdir -p Qt${QT_BASE_VERSION}-${QT_BUILD_TYPE}/${QT_FULL_VERSION}/${QT_BUILD_TYPE} mkdir -p Qt${QT_BASE_VERSION}-${QT_BUILD_TYPE}/${QT_FULL_VERSION}/${QT_BUILD_TYPE}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment