3 # (c) 2016 Enea Software AB
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
13 make submodules-clean submodules-init patches-import
15 # source local environment variables
16 if ! [ -z $LAB_CONFIG_URL ]; then
17 while getopts "l:p:" OPTION 2>/dev/null
20 l) TARGET_LAB=$OPTARG;;
21 p) TARGET_POD=$OPTARG;;
24 local_env=${LAB_CONFIG_URL}/labs/${TARGET_LAB}/${TARGET_POD}/fuel/config/local_env
25 # try to fetch this file, but don't create it if it does not exist.
26 # We add "|| true" to ignore the curl error when the file does not exist
27 echo "curl -s -f -O $local_env || true"
28 curl -s -f -O $local_env || true
29 local_env=$(basename $local_env)
30 if [ -e $local_env ]; then
31 echo "-- Sourcing local environment file"