From f9f9b6e82b3d8abd3b99044d5dd62ece2b97cba3 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Mon, 27 Feb 2017 14:24:03 +0100 Subject: [PATCH] rapidjson: Add prepare scriptlet It is strongly recommended to rely on scons, if not possible, this can be done differently using this script. For more details about building IoTivity please check: https://wiki.iotivity.org/build The main purpose of prep.sh, is for continuous integration experiments for Tizen platform, but could be used for others too. Bug: https://jira.iotivity.org/browse/IOT-1600 Change-Id: I8b07fdc4762baf403079c8816fc3017372627ef7 Signed-off-by: Philippe Coval Reviewed-on: https://gerrit.iotivity.org/gerrit/17537 Tested-by: jenkins-iotivity Reviewed-by: Dan Mihai --- extlibs/rapidjson/prep.sh | 72 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 extlibs/rapidjson/prep.sh diff --git a/extlibs/rapidjson/prep.sh b/extlibs/rapidjson/prep.sh new file mode 100644 index 0000000..b993f88 --- /dev/null +++ b/extlibs/rapidjson/prep.sh @@ -0,0 +1,72 @@ +#!/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 + + +# Right now this script assumes packageRevision is a tag +# comment out the second clause if packageRevision becomes a branch or a specific commit. +package="rapidjson" +packageRevision="v1.0.2" +packageUrl="https://github.com/miloyip/rapidjson" +packageDir="extlibs/${package}/${package}" + + +do_() +{ + set +f + if $EXEC_MODE; then + echo "warning: fetching online resources may not be reproductible" + printf "%s \n" "trying: \"$@\"" + eval "$@" + else + cat<