From: David Reiss Date: Wed, 29 Aug 2007 00:58:14 +0000 (+0000) Subject: Thrift: Install reflection_limited.thrift X-Git-Tag: 0.2.0~1242 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=1ac120f1598a5bc8c9077448a3191c440be82b1d;p=common%2Fthrift.git Thrift: Install reflection_limited.thrift Summary: Building fb303 is hard enough without including limited reflection. This change will install reflection_limited.thrift into /usr/share/thrift/if so it will be easier for fb303 to find (we won't have to dig it out of the thrift source directory). Reviewed By: mcslee, marc Test Plan: ./bootstrap.sh && ./configure && make && sudo make install (on my vmware box). Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665230 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/bootstrap.sh b/bootstrap.sh index 59e0007b..d2e240a2 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,6 +1,6 @@ #!/bin/sh -subdirs="compiler/cpp lib/cpp lib/py" +subdirs="compiler/cpp lib/cpp lib/py if" ./cleanup.sh echo "SUBDIRS = ${subdirs}" > Makefile.am diff --git a/cleanup.sh b/cleanup.sh index 5c0046dd..c7f50542 100755 --- a/cleanup.sh +++ b/cleanup.sh @@ -1,6 +1,6 @@ #!/bin/sh -subdirs="compiler/cpp lib/cpp lib/py" +subdirs="compiler/cpp lib/cpp lib/py if" rm -rf \ AUTHORS \ diff --git a/configure.ac b/configure.ac index eca327d4..9a4aeb5d 100644 --- a/configure.ac +++ b/configure.ac @@ -8,6 +8,6 @@ AM_INIT_AUTOMAKE AC_CONFIG_FILES([Makefile]) -AC_CONFIG_SUBDIRS([compiler/cpp lib/cpp lib/py]) +AC_CONFIG_SUBDIRS([compiler/cpp lib/cpp lib/py if]) AC_OUTPUT diff --git a/if/Makefile.am b/if/Makefile.am new file mode 100644 index 00000000..2f269f17 --- /dev/null +++ b/if/Makefile.am @@ -0,0 +1,3 @@ +thrift_ifdir = $(datadir)/thrift/if +dist_thrift_if_DATA = \ + reflection_limited.thrift diff --git a/if/bootstrap.sh b/if/bootstrap.sh new file mode 100755 index 00000000..b79e4310 --- /dev/null +++ b/if/bootstrap.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +./cleanup.sh +aclocal +touch NEWS README AUTHORS ChangeLog +autoconf +automake -ac diff --git a/if/cleanup.sh b/if/cleanup.sh new file mode 100755 index 00000000..1e35bfee --- /dev/null +++ b/if/cleanup.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +rm -rf \ +AUTHORS \ +ChangeLog \ +COPYING \ +INSTALL \ +Makefile \ +Makefile.in \ +NEWS \ +README \ +aclocal.m4 \ +autom4te.cache \ +config.log \ +config.status \ +config.sub \ +configure \ +install-sh \ +missing diff --git a/if/configure.ac b/if/configure.ac new file mode 100644 index 00000000..df0363b0 --- /dev/null +++ b/if/configure.ac @@ -0,0 +1,11 @@ +AC_PREREQ(2.59) + +AC_INIT([thriftif], [1.0]) + +AC_CONFIG_AUX_DIR([.]) + +AM_INIT_AUTOMAKE + +AC_CONFIG_FILES([Makefile]) + +AC_OUTPUT