| OLD | NEW |
| (Empty) |
| 1 #!/bin/sh | |
| 2 | |
| 3 # Run this script to generate the configure script and other files that will | |
| 4 # be included in the distribution. These files are not checked in because they | |
| 5 # are automatically generated. | |
| 6 | |
| 7 set -e | |
| 8 | |
| 9 # Check that we're being run from the right directory. | |
| 10 if test ! -f src/google/protobuf/stubs/common.h; then | |
| 11 cat >&2 << __EOF__ | |
| 12 Could not find source code. Make sure you are running this script from the | |
| 13 root of the distribution tree. | |
| 14 __EOF__ | |
| 15 exit 1 | |
| 16 fi | |
| 17 | |
| 18 # Check that gmock is present. Usually it is already there since the | |
| 19 # directory is set up as an SVN external. | |
| 20 if test ! -e gmock; then | |
| 21 echo "Google Mock not present. Fetching gmock-1.7.0 from the web..." | |
| 22 curl -O https://googlemock.googlecode.com/files/gmock-1.7.0.zip | |
| 23 unzip -q gmock-1.7.0.zip | |
| 24 rm gmock-1.7.0.zip | |
| 25 mv gmock-1.7.0 gmock | |
| 26 fi | |
| 27 | |
| 28 set -ex | |
| 29 | |
| 30 # TODO(kenton): Remove the ",no-obsolete" part and fix the resulting warnings. | |
| 31 autoreconf -f -i -Wall,no-obsolete | |
| 32 | |
| 33 rm -rf autom4te.cache config.h.in~ | |
| 34 exit 0 | |
| OLD | NEW |