From 5d1eec65f2b0bf0214b6bafddbc3725cea0e5e36 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Wed, 19 Jul 2017 11:34:09 +0200 Subject: [PATCH] wksxmppxep: Add scriptlet to clone before scons Bug: https://jira.iotivity.org/browse/IOT-1760 Change-Id: Icb301bb46ca5faab46576deea35ac623646a1ade Signed-off-by: Philippe Coval Reviewed-on: https://gerrit.iotivity.org/gerrit/21533 Tested-by: jenkins-iotivity Reviewed-by: Dan Mihai (cherry picked from commit 399d88deae071c5fa742bc4f1cc1cb43b07d6989) Reviewed-on: https://gerrit.iotivity.org/gerrit/22065 Reviewed-by: Mats Wichmann --- extlibs/wksxmppxep/prep.sh | 76 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100755 extlibs/wksxmppxep/prep.sh diff --git a/extlibs/wksxmppxep/prep.sh b/extlibs/wksxmppxep/prep.sh new file mode 100755 index 0000000..5dbd962 --- /dev/null +++ b/extlibs/wksxmppxep/prep.sh @@ -0,0 +1,76 @@ +#!/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}" + + +package="wksxmppxep" +packageUrl="https://github.com/WorksSystems/wks_xep0047" +packageDir="./extlibs/${package}/wks_xep0047" +packageVersion="master" +packageRevision="8e9f42d02a0f416001065d1cddc1ab07974cef1" + + +do_() +{ + set +f + if $EXEC_MODE; then + echo "warning: fetching online resources may not be reproductible" + printf "%s \n" "trying: \"$@\"" + eval "$@" + else +cat<