From cd1c0bcbd43e2fda106f0f0e2406fef4249ce3dd Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Wed, 19 Jul 2017 11:34:09 +0200 Subject: [PATCH] raxmpp: Add scriptlet to clone before scons Bug: https://jira.iotivity.org/browse/IOT-1760 Change-Id: Ibb074c1387826af783c2a8d18c3f12bfc34834c3 Signed-off-by: Philippe Coval Reviewed-on: https://gerrit.iotivity.org/gerrit/21535 Tested-by: jenkins-iotivity Reviewed-by: Dan Mihai (cherry picked from commit 90cde5ba9927d19d0c1826500f3ada41e2693d2f) Reviewed-on: https://gerrit.iotivity.org/gerrit/22157 Reviewed-by: Mats Wichmann --- extlibs/raxmpp/prep.sh | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100755 extlibs/raxmpp/prep.sh diff --git a/extlibs/raxmpp/prep.sh b/extlibs/raxmpp/prep.sh new file mode 100755 index 0000000..7f34e5f --- /dev/null +++ b/extlibs/raxmpp/prep.sh @@ -0,0 +1,80 @@ +#!/bin/bash +#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + + +set -e + +[ ! -z ${EXEC_MODE} ] || EXEC_MODE=false + +topdir="${PWD}" + +# Keep packageRevision in sync with SConscript's setting +# Right now this script assumes packageRevision is a tag; +# comment out the second clause +# if packageRevision becomes a branch or a specific commit. +package="iotivity-xmpp" +packageUrl="https://gerrit.iotivity.org/gerrit/iotivity-xmpp" +packageDir="./extlibs/raxmpp/raxmpp" +packageVersion="master" +# TODO: pin +packageRevision="$packageVersion" + + +do_() +{ + set +f + if $EXEC_MODE; then + echo "warning: fetching online resources may not be reproductible" + printf "%s \n" "trying: \"$@\"" + eval "$@" + else +cat<