#!/bin/bash
-#set -x
+set -x
export AGLBRANCH=master
-export GERRIT_REFSPEC="refs/changes/51/9551/2"
-export GERRIT_PROJECT="apps/mediaplayer"
-export GERRIT_CHANGE_NUMBER="10799"
+export GERRIT_REFSPEC="refs/changes/46/25046/1"
+export GERRIT_PROJECT="apps/agl-service-bluetooth"
+export GERRIT_CHANGE_NUMBER="25046"
export GERRIT_PATCHSET_NUMBER="1"
-export GERRIT_PATCHSET_REVISION="1a1ff962da92aff5a1d3e757710c725e03238458"
+export GERRIT_PATCHSET_REVISION="cb8db512e462af970735aa86781ca2cfa58d0760"
export GERRIT_HOST="gerrit.automotivelinux.org"
export GERRIT_PORT="29418"
pip install --user git-review
git review -d ${GERRIT_CHANGE_NUMBER},${GERRIT_PATCHSET_NUMBER}
fi
- sleep 2
+ #sleep 2
# if not reset, we leave it to master
fi
git submodule init && git submodule update
fi
- git log -1 --pretty=oneline
+ git log -1 --pretty=oneline | more
export DONE=0
export isAUTOBUILD=0
echo " autobuild/agl/autobuild package-all DEST=somefolder"
exit 1
fi
+ ls -alh
+ ls -alh package || true
popd
HANDLED="yes"
fi
+
fi
pushd ${MYPROJECT}
-pwd
-ls -alh
+#pwd
+ls -alh package
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
+ cp package/*.wgt $DEST
fi
-######################################################################
-# /!\/!\/!\ DEPRECATED FALLBACK WAY TO BUILD AGL APPS /!\/!\/!\ #
-######################################################################
-
-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
-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
-
ls -alh $DEST