MB-11027: Build in Release mode. Install CouchDB Erlang stuff to
top-level lib/. Also simplify repo usage. Reset voltron repo after
pulling to clean up from previous builds.

Change-Id: I065addc2c4ced4a0e8e10d5d070ee94761df63e0
Reviewed-on: http://review.couchbase.org/37031
Reviewed-by: Chris Hillery <ceej@couchbase.com>
Tested-by: Chris Hillery <ceej@couchbase.com>
CBLT-286: LIST_OF_JARS with couchbase-lite prefix

Change-Id: I21883ac5dc5837d1249f76f85a0c3f7f1f3272a2
Reviewed-on: http://review.couchbase.org/37074
Reviewed-by: Traun Leyden <tleyden@couchbase.com>
Tested-by: Traun Leyden <tleyden@couchbase.com>
CBLT-42:  add a windows BAT file to do same thing as build_sync_gateway.sh

Even with a cygwin BASH environment, cannot get GO to handle GOROOT correctly.

Change-Id: Ic5b936277dcd14496ca31564a4221f66d702833f
Reviewed-on: http://review.couchbase.org/37092
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
CBLT-42:  fix typo in DOS:  "call :usage"

Change-Id: I5f869c58c2601a9d572a053cf84af793e0c07238
Reviewed-on: http://review.couchbase.org/37093
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
CBLT-42:  fix typo in DOS:  "call :usage"

Change-Id: I3aa3a5ddca3c0398eec8c2bc278efa5de2555e97
Reviewed-on: http://review.couchbase.org/37094
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
CBLT-42:  fix typo in DOS string comparisons

Change-Id: I2e09968232266764e5174a721ceca105a5ffae35
Reviewed-on: http://review.couchbase.org/37095
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
CBLT-42:  turn on DEBUG output

Change-Id: I5a55852170589d6a69911b062f19efea82110dd7
Reviewed-on: http://review.couchbase.org/37096
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
CBLT-42:  fix typo in DOS string comparisons

Change-Id: Id65faae6942ec247230c5ab96d668a6def29f493
Reviewed-on: http://review.couchbase.org/37098
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
CBLT-42:  fix typo in go command call

Change-Id: Idc47fb33793351f849bec963b731ef84b31acb7a
Reviewed-on: http://review.couchbase.org/37099
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
Reset voltron *first*
Change-Id: Ib86867e748897a1cb6de14f76e5480ce437650e0
Reviewed-on: http://review.couchbase.org/37100
Reviewed-by: Chris Hillery <ceej@couchbase.com>
Tested-by: Chris Hillery <ceej@couchbase.com>
CBLT-42:  fix typo in go command call

Change-Id: I2965509d00afdf9797b19ffed3f2e6b559ecc81f
Reviewed-on: http://review.couchbase.org/37103
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
CBLT-42:  identify windows ARCH by PROCESSOR_IDENTIFIER, not PROCESSOR_ARCHITECTURE

Change-Id: I50039fa769613ed4ba49505fc8414c9cb4872963
Reviewed-on: http://review.couchbase.org/37106
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
CBLT-42:  identify windows ARCH by "PROCESSOR_IDENTIFIER"

Change-Id: Id1ee9a370ed07ff77840a0b087b6d301439c59e3
Reviewed-on: http://review.couchbase.org/37108
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
CBLT-42:  set GOHOSTARCH=%GOARCH%

Change-Id: Iaa9d335b9219fbd32e8cee4e3ce1d0a7711f810c
Reviewed-on: http://review.couchbase.org/37109
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
download iOS from a URL

Change-Id: I77ecd2de5682f841d5e60f0264b6c36a5ee6b40d
Reviewed-on: http://review.couchbase.org/37191
Reviewed-by: Chris Anderson <jchris@couchbase.com>
Tested-by: Chris Anderson <jchris@couchbase.com>
move binaries instead of copy

Change-Id: I3ad741e809ae92e9b0ba8dce8da1190495990c6d
Reviewed-on: http://review.couchbase.org/37192
Reviewed-by: Chris Anderson <jchris@couchbase.com>
Tested-by: Chris Anderson <jchris@couchbase.com>
CBLT-42:  add windows builds to sync_gateway master

Change-Id: I5421af46894fd9949f50886c1c482ea54ec8f0a6
Reviewed-on: http://review.couchbase.org/37195
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
CBLT-42:  add windows builds to sync_gateway master

Change-Id: I8cfcc8d28fa8ee598f21452b7fedb9d6d34cd654
Reviewed-on: http://review.couchbase.org/37196
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
CBLT-42:  fix more DOS typos (must use "set FOO=bar")

Change-Id: I30315c8019ff43fa837dd7e5433132cc3fc1abe1
Reviewed-on: http://review.couchbase.org/37198
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
CBLT-42:  fix more DOS typos, simplify setting REPO_SHA

Change-Id: I9b81b0cdcf3749af22a0b0b0a61126a94390a302
Reviewed-on: http://review.couchbase.org/37199
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>