comparison 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
comparison
equal deleted inserted replaced
5492:d42906df4527 5493:2be02d6ad9dc
48 -?, --help Show this message 48 -?, --help Show this message
49 -w The working directory to use. (do not use spaces in path) 49 -w The working directory to use. (do not use spaces in path)
50 Default: $DEFAULT_WD 50 Default: $DEFAULT_WD
51 -t Tag the current default branch as "VERSION" 51 -t Tag the current default branch as "VERSION"
52 -o, --oracle Release is for oracle. 52 -o, --oracle Release is for oracle.
53 VERSION must be in the format MAYOR.MINOR.PATCH 53 VERSION must be in the format MAYOR.MINOR.PATCH or default
54 EOF 54 EOF
55 exit 0 55 exit 0
56 } 56 }
57 # --backend-db-url Url of database backend. Default: $BACKENDURL 57 # --backend-db-url Url of database backend. Default: $BACKENDURL
58 # --backend-db-pass Backend db password. Default: $BACKENDPASS 58 # --backend-db-pass Backend db password. Default: $BACKENDPASS
78 78
79 79
80 # Backend configuration 80 # Backend configuration
81 BACKENDURL=${BACKENDURL:-czech-republic.atlas.intevation.de} 81 BACKENDURL=${BACKENDURL:-czech-republic.atlas.intevation.de}
82 BACKENDPORT=${BACKENDPORT:-5432} 82 BACKENDPORT=${BACKENDPORT:-5432}
83 BACKENDBACK=${BACKENDBACK:-flys_2913} 83 BACKENDBACK=${BACKENDBACK:-flys_devel}
84 BACKENDUSER=${BACKENDUSER:-flys_dami} 84 BACKENDUSER=${BACKENDUSER:-flys_dami}
85 BACKENDPASS=${BACKENDPASS:-flys_dami} 85 BACKENDPASS=${BACKENDPASS:-flys_dami}
86 INITSQLS=${INITSQLS:-} 86 INITSQLS=${INITSQLS:-}
87 LOG_DIR=/var/log/flys 87 LOG_DIR=/var/log/flys
88 88
117 if [ $# != 1 ]; then 117 if [ $# != 1 ]; then
118 usage 118 usage
119 fi 119 fi
120 120
121 VERSION=$1 121 VERSION=$1
122 ARTIFACT_PORT=${ARTIFACT_PORT:-`echo 1$VERSION | sed 's/\.//g'`} 122 if [ "$VERSION" = "default" ]; then
123 ARTIFACT_PORT=${ARTIFACT_PORT:-29999}
124 else
125 ARTIFACT_PORT=${ARTIFACT_PORT:-`echo 1$VERSION | sed 's/\.//g'`}
126 fi
123 127
124 if [ -z $WORK_DIR ]; then 128 if [ -z $WORK_DIR ]; then
125 WORK_DIR=$DEFAULT_WD 129 WORK_DIR=$DEFAULT_WD
126 fi 130 fi
127 131

http://dive4elements.wald.intevation.org