diff options
Diffstat (limited to 'release-tools/mksrc.sh')
-rwxr-xr-x | release-tools/mksrc.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/release-tools/mksrc.sh b/release-tools/mksrc.sh index 9b11169..62c73b5 100755 --- a/release-tools/mksrc.sh +++ b/release-tools/mksrc.sh @@ -306,11 +306,13 @@ fi # Step 5, check which license type is selected, and run patches # if needed #------------------------------------------------------------------ -if [ $LICENSE = commercial ]; then - echo " -- Making Qt commercial, run $PATCH_FILE" - $PATCH_FILE $CUR_DIR/$PACKAGE_NAME/ $QTVER -else - echo " -- Not a commercial run" +if [ $PATCH_FILE ]; then + if [ $LICENSE = commercial]; then + # when doing commercial build, patch file needs src folder and qt version no as parameters + $PATCH_FILE $CUR_DIR/$PACKAGE_NAME/ $QTVER + else + $PATCH_FILE + fi fi #------------------------------------------------------------------ |