aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/scripts
diff options
context:
space:
mode:
authorScott Fan <fancp2007@gmail.com>2013-06-14 13:58:21 +0800
committerRaphaƫl Moll <ralf@android.com>2013-09-12 20:16:36 +0000
commit1d351e4ce230390e97748addf4e22077b6044ced (patch)
tree47b9519ff940f6dcf343cefde017b3c5570f55a0 /eclipse/scripts
parent372568afc78c722ce6324f110e244cc26528fd34 (diff)
downloadsdk-1d351e4ce230390e97748addf4e22077b6044ced.zip
sdk-1d351e4ce230390e97748addf4e22077b6044ced.tar.gz
sdk-1d351e4ce230390e97748addf4e22077b6044ced.tar.bz2
build_server.sh: fix QUALIFIER name.
Change-Id: I0ea7fb4ee3292790b9b2cbc9c8e15d64fe24bfe5 Signed-off-by: Scott Fan <fancp2007@gmail.com>
Diffstat (limited to 'eclipse/scripts')
-rwxr-xr-xeclipse/scripts/build_server.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclipse/scripts/build_server.sh b/eclipse/scripts/build_server.sh
index e96abe1..52c4ea9 100755
--- a/eclipse/scripts/build_server.sh
+++ b/eclipse/scripts/build_server.sh
@@ -64,7 +64,8 @@ function check_params() {
# Qualifier is "v" followed by date/time in YYYYMMDDHHSS format, an optional "preview"
# tag and the optional build number.
DATE=`date +v%Y%m%d%H%M`
- QUALIFIER="${DATE}-$ADT_PREVIEW"
+ local preview="${ADT_PREVIEW:+-}${ADT_PREVIEW}"
+ QUALIFIER="${DATE}${preview}"
[ -n "$BUILD_NUMBER" ] && QUALIFIER="${QUALIFIER}-${BUILD_NUMBER}"
return 0