~ubuntu-branches/debian/squeeze/protobuf/squeeze

« back to all changes in this revision

Viewing changes to generate_descriptor_proto.sh

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2009-06-02 16:19:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090602161900-vm176i3ryt35yk91
Tags: 2.0.3-2.2
* Non-maintainer upload.
* Fix FTBFS from -2.1: don't fail when we can't clean up the java build,
  such as when openjdk isn't installed.
* Disable parallel builds, because libtool is made of fail (if binary-arch
  and build-indep run concurrently, we relink a library while it's being
  used; that doesn't work so well).

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
# will fail if these files do not match what the protocol compiler would
7
7
# generate.
8
8
 
9
 
# Note that this will always need to be run once after running
10
 
# extract_from_google3.sh.  That script initially copies descriptor.pb.{h,cc}
11
 
# over from the google3 code and fixes it up to compile outside of google3, but
12
 
# it cannot fix the encoded descriptor embedded in descriptor.pb.cc.  So, once
13
 
# the protocol compiler has been built with the slightly-broken
14
 
# descriptor.pb.cc, the files must be regenerated and the compiler must be
15
 
# built again.
16
 
 
17
9
if test ! -e src/google/protobuf/stubs/common.h; then
18
10
  cat >&2 << __EOF__
19
11
Could not find source code.  Make sure you are running this script from the
30
22
  exit 1
31
23
fi
32
24
 
33
 
pushd src
 
25
cd src
34
26
make protoc && ./protoc --cpp_out=dllexport_decl=LIBPROTOBUF_EXPORT:. google/protobuf/descriptor.proto
35
 
popd
 
27
cd ..