From ae9177d6453ce23ddb33927a5e88360255efa1fc Mon Sep 17 00:00:00 2001 From: Kun Zhang Date: Tue, 31 Mar 2015 18:26:28 -0700 Subject: Switch from Gradle to Maven. --- protoc-artifacts/build-protoc.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'protoc-artifacts/build-protoc.sh') 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) -- cgit v1.2.3