autogen.sh 625 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. # Run this script to generate the configure script and other files that will
  3. # be included in the distribution. These files are not checked in because they
  4. # are automatically generated.
  5. # Check that we're being run from the right directory.
  6. if test ! -e src/google/protobuf/stubs/common.h; then
  7. cat >&2 << __EOF__
  8. Could not find source code. Make sure you are running this script from the
  9. root of the distribution tree.
  10. __EOF__
  11. exit 1
  12. fi
  13. set -ex
  14. # TODO(kenton): Remove the ",no-obsolete" part and fix the resulting warnings.
  15. autoreconf -f -i -Wall,no-obsolete
  16. rm -rf autom4te.cache config.h.in~
  17. exit 0