Browse Source

fixed shell script error, when we were building target without qml files

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
7ff02f0229
  1. 7
      macdeployfix.sh

7
macdeployfix.sh

@ -7,6 +7,12 @@ BUILD_FOLDER_PATH=$1
BUILD_QML_FOLDER_PATH="$BUILD_FOLDER_PATH/Resources/qml"
BUILD_PLUGINS_FOLDER_PATH="$BUILD_FOLDER_PATH/PlugIns"
if [ ! -d ${BUILD_QML_FOLDER_PATH} ]; then
# we are not using any qml files
# gracefully exit
exit 0
fi
declare -a BROKEN_FILES;
k=0;
for j in $(find ${BUILD_QML_FOLDER_PATH} -name *.dylib); do
@ -36,3 +42,4 @@ for i in "${BROKEN_FILES[@]}"; do
REMOVE_BROKEN_ALIAS=$(rm -rf $i)
RESULT=$(ln -s $s $i)
done

Loading…
Cancel
Save