diff contrib/make_flys_release/make_release.sh @ 5493:2be02d6ad9dc

Allow default version in packaging script
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 28 Mar 2013 10:57:15 +0100
parents 485ff339661e
children 7f8d6b49afad
line wrap: on
line diff
--- a/contrib/make_flys_release/make_release.sh	Thu Mar 28 09:44:32 2013 +0100
+++ b/contrib/make_flys_release/make_release.sh	Thu Mar 28 10:57:15 2013 +0100
@@ -50,7 +50,7 @@
                                    Default: $DEFAULT_WD
    -t                              Tag the current default branch as "VERSION"
    -o, --oracle                    Release is for oracle.
-   VERSION must be in the format MAYOR.MINOR.PATCH
+   VERSION must be in the format MAYOR.MINOR.PATCH or default
 EOF
 exit 0
 }
@@ -80,7 +80,7 @@
 # Backend configuration
 BACKENDURL=${BACKENDURL:-czech-republic.atlas.intevation.de}
 BACKENDPORT=${BACKENDPORT:-5432}
-BACKENDBACK=${BACKENDBACK:-flys_2913}
+BACKENDBACK=${BACKENDBACK:-flys_devel}
 BACKENDUSER=${BACKENDUSER:-flys_dami}
 BACKENDPASS=${BACKENDPASS:-flys_dami}
 INITSQLS=${INITSQLS:-}
@@ -119,7 +119,11 @@
 fi
 
 VERSION=$1
-ARTIFACT_PORT=${ARTIFACT_PORT:-`echo 1$VERSION | sed 's/\.//g'`}
+if [ "$VERSION" = "default" ]; then
+    ARTIFACT_PORT=${ARTIFACT_PORT:-29999}
+else
+    ARTIFACT_PORT=${ARTIFACT_PORT:-`echo 1$VERSION | sed 's/\.//g'`}
+fi
 
 if [ -z $WORK_DIR ]; then
   WORK_DIR=$DEFAULT_WD

http://dive4elements.wald.intevation.org