Louis Ryan | c42c8c4 | 2015-03-18 16:31:38 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Build protoc & netty |
| 4 | set -ev |
| 5 | |
Louis Ryan | c42c8c4 | 2015-03-18 16:31:38 -0700 | [diff] [blame] | 6 | # Make protoc |
Eric Anderson | a0acb9b | 2015-03-20 10:26:00 -0700 | [diff] [blame] | 7 | # Can't check for presence of directory as cache auto-creates it. |
Kun Zhang | a251171 | 2015-06-05 14:55:26 -0700 | [diff] [blame] | 8 | if [ -f /tmp/proto3-a3/bin/protoc ]; then |
Eric Anderson | a0acb9b | 2015-03-20 10:26:00 -0700 | [diff] [blame] | 9 | echo "Not building protobuf. Already built" |
| 10 | else |
Kun Zhang | af9fb6d | 2015-06-30 16:08:46 -0700 | [diff] [blame] | 11 | wget -O - https://github.com/google/protobuf/archive/v3.0.0-alpha-3.1.tar.gz | tar xz -C /tmp |
| 12 | pushd /tmp/protobuf-3.0.0-alpha-3.1 |
Eric Anderson | a0acb9b | 2015-03-20 10:26:00 -0700 | [diff] [blame] | 13 | ./autogen.sh |
| 14 | # install here so we don't need sudo |
Kun Zhang | a251171 | 2015-06-05 14:55:26 -0700 | [diff] [blame] | 15 | ./configure --prefix=/tmp/proto3-a3 |
Eric Anderson | a0acb9b | 2015-03-20 10:26:00 -0700 | [diff] [blame] | 16 | make -j2 |
| 17 | make install |
| 18 | popd |
| 19 | fi |