aboutsummaryrefslogtreecommitdiffhomepage
path: root/protoc-artifacts/build-protoc.sh
diff options
context:
space:
mode:
authorGravatar Kun Zhang <zhangkun@google.com>2015-03-31 18:26:28 -0700
committerGravatar Kun Zhang <zhangkun@google.com>2015-03-31 18:26:28 -0700
commitae9177d6453ce23ddb33927a5e88360255efa1fc (patch)
tree4681ff663d2ddd8a5553794574c6728d4036e72a /protoc-artifacts/build-protoc.sh
parente2f858574b1cbab1d914ad451bb942bec81347ee (diff)
Switch from Gradle to Maven.
Diffstat (limited to 'protoc-artifacts/build-protoc.sh')
-rwxr-xr-xprotoc-artifacts/build-protoc.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/protoc-artifacts/build-protoc.sh b/protoc-artifacts/build-protoc.sh
index f166c8b6..4e0e5498 100755
--- a/protoc-artifacts/build-protoc.sh
+++ b/protoc-artifacts/build-protoc.sh
@@ -1,5 +1,8 @@
#!/bin/bash
+cd $(dirname "$0")
+WORKING_DIR=$(pwd)
+
# Override the default value set in configure.ac that has '-g' which produces
# huge binary.
export CXXFLAGS="-DNDEBUG"
@@ -16,4 +19,6 @@ if [[ "$(uname)" == CYGWIN* ]]; then
export CXXCPP=i686-pc-mingw32-cpp
fi
-cd $(dirname "$0")/.. && ./configure --disable-shared && make clean && make
+cd "$WORKING_DIR"/.. && ./configure --disable-shared && make clean && make &&
+ cd "$WORKING_DIR" && mkdir -p target &&
+ (cp ../src/protoc target/protoc.exe || cp ../src/protoc.exe target/protoc.exe)