diff 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
line wrap: on
line diff
--- a/contrib/make_flys_release/make_release.sh	Fri May 29 18:41:12 2020 +0200
+++ b/contrib/make_flys_release/make_release.sh	Fri May 29 19:25:55 2020 +0200
@@ -21,8 +21,6 @@
 FLYS_HG_REPO="https://wald.intevation.org/hg/dive4elements/river"
 
 REPOS="river http-client framework"
-# Do not use spaces in path
-FLYS_SOURCE_DIR=/local-vol1/aheinecke/flys-release
 
 SCRIPT_DIR=$(readlink -f `dirname $0`)
 usage(){
@@ -112,7 +110,8 @@
 fi
 
 if [ ! -d "$FLYS_SOURCE_DIR" ]; then
-    mkdir -p $FLYS_SOURCE_DIR
+    mkdir -p ${FLYS_SOURCE_DIR:=$(mktemp -d)}
+    echo "Will use source code checkouts in $FLYS_SOURCE_DIR"
     echo "Cloning sources"
     cd $FLYS_SOURCE_DIR
     hg clone $ARTIFACTS_HG_REPO framework

http://dive4elements.wald.intevation.org