comparison contrib/make_flys_release/make_release.sh @ 9675:59ad66feb8f8 3.2.x

Get rid of hard coded default checkout directory
author Tom Gottfried <tom@intevation.de>
date Fri, 29 May 2020 19:25:55 +0200
parents e04851177bb7
children 21c89e39ca72
comparison
equal deleted inserted replaced
9674:ec324fd51bb0 9675:59ad66feb8f8
19 ARTIFACTS_HG_REPO="https://wald.intevation.org/hg/dive4elements/framework" 19 ARTIFACTS_HG_REPO="https://wald.intevation.org/hg/dive4elements/framework"
20 HTTPCLIIENT_HG_REPO="https://wald.intevation.org/hg/dive4elements/http-client" 20 HTTPCLIIENT_HG_REPO="https://wald.intevation.org/hg/dive4elements/http-client"
21 FLYS_HG_REPO="https://wald.intevation.org/hg/dive4elements/river" 21 FLYS_HG_REPO="https://wald.intevation.org/hg/dive4elements/river"
22 22
23 REPOS="river http-client framework" 23 REPOS="river http-client framework"
24 # Do not use spaces in path
25 FLYS_SOURCE_DIR=/local-vol1/aheinecke/flys-release
26 24
27 SCRIPT_DIR=$(readlink -f `dirname $0`) 25 SCRIPT_DIR=$(readlink -f `dirname $0`)
28 usage(){ 26 usage(){
29 cat << EOF 27 cat << EOF
30 28
110 echo "ERROR: Failed to find smartgwt archive at: '$SMARTGWT'" 108 echo "ERROR: Failed to find smartgwt archive at: '$SMARTGWT'"
111 exit 1 109 exit 1
112 fi 110 fi
113 111
114 if [ ! -d "$FLYS_SOURCE_DIR" ]; then 112 if [ ! -d "$FLYS_SOURCE_DIR" ]; then
115 mkdir -p $FLYS_SOURCE_DIR 113 mkdir -p ${FLYS_SOURCE_DIR:=$(mktemp -d)}
114 echo "Will use source code checkouts in $FLYS_SOURCE_DIR"
116 echo "Cloning sources" 115 echo "Cloning sources"
117 cd $FLYS_SOURCE_DIR 116 cd $FLYS_SOURCE_DIR
118 hg clone $ARTIFACTS_HG_REPO framework 117 hg clone $ARTIFACTS_HG_REPO framework
119 hg clone $HTTPCLIIENT_HG_REPO http-client 118 hg clone $HTTPCLIIENT_HG_REPO http-client
120 hg clone $FLYS_HG_REPO river 119 hg clone $FLYS_HG_REPO river

http://dive4elements.wald.intevation.org