| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 | 2 |
| 3 # Run this script to generate the configure script and other files that will | 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 | 4 # be included in the distribution. These files are not checked in because they |
| 5 # are automatically generated. | 5 # are automatically generated. |
| 6 | 6 |
| 7 set -e | 7 set -e |
| 8 | 8 |
| 9 if [ ! -z "$@" ]; then | 9 if [ ! -z "$@" ]; then |
| 10 for argument in "$@"; do | 10 for argument in "$@"; do |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 Could not find source code. Make sure you are running this script from the | 24 Could not find source code. Make sure you are running this script from the |
| 25 root of the distribution tree. | 25 root of the distribution tree. |
| 26 __EOF__ | 26 __EOF__ |
| 27 exit 1 | 27 exit 1 |
| 28 fi | 28 fi |
| 29 | 29 |
| 30 # Check that gmock is present. Usually it is already there since the | 30 # Check that gmock is present. Usually it is already there since the |
| 31 # directory is set up as an SVN external. | 31 # directory is set up as an SVN external. |
| 32 if test ! -e gmock; then | 32 if test ! -e gmock; then |
| 33 echo "Google Mock not present. Fetching gmock-1.7.0 from the web..." | 33 echo "Google Mock not present. Fetching gmock-1.7.0 from the web..." |
| 34 curl $curlopts -O https://googlemock.googlecode.com/files/gmock-1.7.0.zip | 34 curl $curlopts -L -O https://github.com/google/googlemock/archive/release-1.7.
0.zip |
| 35 unzip -q gmock-1.7.0.zip | 35 unzip -q release-1.7.0.zip |
| 36 rm gmock-1.7.0.zip | 36 rm release-1.7.0.zip |
| 37 mv gmock-1.7.0 gmock | 37 mv googlemock-release-1.7.0 gmock |
| 38 |
| 39 curl $curlopts -L -O https://github.com/google/googletest/archive/release-1.7.
0.zip |
| 40 unzip -q release-1.7.0.zip |
| 41 rm release-1.7.0.zip |
| 42 mv googletest-release-1.7.0 gmock/gtest |
| 38 fi | 43 fi |
| 39 | 44 |
| 40 set -ex | 45 set -ex |
| 41 | 46 |
| 42 # TODO(kenton): Remove the ",no-obsolete" part and fix the resulting warnings. | 47 # TODO(kenton): Remove the ",no-obsolete" part and fix the resulting warnings. |
| 43 autoreconf -f -i -Wall,no-obsolete | 48 autoreconf -f -i -Wall,no-obsolete |
| 44 | 49 |
| 45 rm -rf autom4te.cache config.h.in~ | 50 rm -rf autom4te.cache config.h.in~ |
| 46 exit 0 | 51 exit 0 |
| OLD | NEW |