aboutsummaryrefslogtreecommitdiffstats
path: root/packaging-tools/mksrc.sh
diff options
context:
space:
mode:
authorAntti Kokko <antti.kokko@digia.com>2014-04-22 10:00:20 +0300
committerAntti Kokko <antti.kokko@digia.com>2014-04-22 12:21:39 +0200
commit27ad24d75e43bd2030d8bc67f01fe40567bf2565 (patch)
tree47404351fa8af9eef85054d2d999fc1cf1e8efcb /packaging-tools/mksrc.sh
parent8794e3c5250e370b604438546fd1221ee5f5e249 (diff)
Add sync.profile check to mksrc.sh
syncqt.pl not run if sync.profile missing Change-Id: I6f492022b91250e3d199aca9d2f3a715165b9708 Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>
Diffstat (limited to 'packaging-tools/mksrc.sh')
-rwxr-xr-xpackaging-tools/mksrc.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/packaging-tools/mksrc.sh b/packaging-tools/mksrc.sh
index c47abe2bd..c103b0ce0 100755
--- a/packaging-tools/mksrc.sh
+++ b/packaging-tools/mksrc.sh
@@ -377,8 +377,12 @@ if [ $SKIPSYNCQT = no ]; then
else
RESULT=$(grep "MODULE_VERSION" $PACKAGE_DIR/.qmake.conf)
QTSYNCQTVER=$(echo $RESULT | sed 's/.[^=]*=\(.[^ \t]*\)[ \t]*/\1/')
- echo " - Running syncqt.pl for $REPO_NAME with -version $QTSYNCQTVER"
- $CUR_DIR/../qtbase/bin/syncqt.pl -version $QTSYNCQTVER -outdir $PACKAGE_DIR $PACKAGE_DIR
+ if [ -f $PACKAGE_DIR/"sync.profile" ]; then
+ echo " - Running syncqt.pl for $REPO_NAME with -version $QTSYNCQTVER"
+ $CUR_DIR/../qtbase/bin/syncqt.pl -version $QTSYNCQTVER -outdir $PACKAGE_DIR $PACKAGE_DIR
+ else
+ echo "*** WARNING sync.profile not found - not running syncqt.pl ***"
+ fi
fi
fi