diff options
Diffstat (limited to 'jjb/common/include-apps-prepare-upload-folder.sh')
-rw-r--r-- | jjb/common/include-apps-prepare-upload-folder.sh | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/jjb/common/include-apps-prepare-upload-folder.sh b/jjb/common/include-apps-prepare-upload-folder.sh index dc2f8bf0..83b939a3 100644 --- a/jjb/common/include-apps-prepare-upload-folder.sh +++ b/jjb/common/include-apps-prepare-upload-folder.sh @@ -25,14 +25,35 @@ pushd ${MYPROJECT} pwd ls -alh -if test -d build/package ; then +if test x"$isCMAKE" = x"1" ; then + echo "isCMAKE" # use cmake build/package folder for wgt's ... ls build/package/ || true cp build/package/*.wgt $DEST -else - # use just ./package/ for wgt's - ls package || true - cp package/*.wgt $DEST +fi +if test x"$isAUTOBUILD" = x"1" ; then + if [ "$(ls -l package/*.wgt | wc -l)" = "1" ] ; then + echo "isAUTOBUILD" + # use just ./package/ for wgt's + ls package || true + cp package/*.wgt $DEST + elif [ "$(ls -l build/package/*.wgt | wc -l)" = "1" ] ; then + # use just ./build/package/ for wgt's + ls build/package || true + cp build/package/*.wgt $DEST + fi +fi +if test x"$isMAKE" = x"1" ; then + echo "isMAKE" + # use just ./package/ for wgt's + ls package || true + cp package/*.wgt $DEST +fi +if test x"$isQMAKE" = x"1" ; then + echo "isQMAKE" + # use just ./package/ for wgt's + ls package || true + cp package/*.wgt $DEST fi |