[Dive4elements-commits] [PATCH 3 of 3] Allow default version in packaging script
Wald Commits
scm-commit at wald.intevation.org
Thu Mar 28 11:12:32 CET 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1364464635 -3600
# Node ID 2be02d6ad9dca20098fb89829135ca8f246a307e
# Parent d42906df45279a6a42bd36c700d41f0ffc237124
Allow default version in packaging script
diff -r d42906df4527 -r 2be02d6ad9dc contrib/make_flys_release/make_release.sh
--- 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
More information about the Dive4elements-commits
mailing list