diff options
author | Kun Zhang <zhangkun@google.com> | 2015-03-31 18:26:28 -0700 |
---|---|---|
committer | Kun Zhang <zhangkun@google.com> | 2015-03-31 18:26:28 -0700 |
commit | ae9177d6453ce23ddb33927a5e88360255efa1fc (patch) | |
tree | 4681ff663d2ddd8a5553794574c6728d4036e72a /protoc-artifacts/build-protoc.sh | |
parent | e2f858574b1cbab1d914ad451bb942bec81347ee (diff) | |
download | protobuf-ae9177d6453ce23ddb33927a5e88360255efa1fc.tar.gz protobuf-ae9177d6453ce23ddb33927a5e88360255efa1fc.tar.bz2 protobuf-ae9177d6453ce23ddb33927a5e88360255efa1fc.zip |
Switch from Gradle to Maven.
Diffstat (limited to 'protoc-artifacts/build-protoc.sh')
-rwxr-xr-x | protoc-artifacts/build-protoc.sh | 7 |
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) |