From ee644f8dcae4b0eea97751ab96ff29afc9c7879d Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 20 Sep 2007 21:07:25 +0000 Subject: * cpp/bootstrap, cpp/rubygen/generate, cpp/src/Makefile.am: Fixed generated headers to install properly. * cpp/qpidc.spec.in: removed apr dependency. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@577916 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/bootstrap | 7 ------- cpp/qpidc.spec.in | 8 ++++---- cpp/rubygen/generate | 26 ++++++++++++++++++-------- cpp/src/Makefile.am | 6 ------ 4 files changed, 22 insertions(+), 25 deletions(-) (limited to 'cpp') diff --git a/cpp/bootstrap b/cpp/bootstrap index d96749e14b..feb45f7510 100755 --- a/cpp/bootstrap +++ b/cpp/bootstrap @@ -4,11 +4,6 @@ aclocal -I m4 autoheader libtoolize --automake -# These are needed only if you don't already have the gen/*.{h,cpp} files. -: ${JAVA=java} -: ${JAVAC=javac} -export JAVA JAVAC - # Generate (for automake) lots of repetitive parts of tests/Makefile.am. (cd src/tests && rm -f gen.mk perl -ne '/^(include |if |else|endif)/ or print' Makefile.am \ @@ -21,8 +16,6 @@ cat > src/rubygen.mk < - 0.2-7 +- Removed apr dependency. * Wed Aug 1 2007 Alan Conway - 0.2-6 - added --disable-cluster flag @@ -188,3 +187,4 @@ fi * Fri Dec 8 2006 David Lutterkort - 0.1-1 - Initial version based on Jim Meyering's sketch and discussions with Alan Conway + diff --git a/cpp/rubygen/generate b/cpp/rubygen/generate index e35a5458ea..dba3b81273 100755 --- a/cpp/rubygen/generate +++ b/cpp/rubygen/generate @@ -30,6 +30,8 @@ else end templates.each { |t| load t } +def make_continue(lines) lines.join(" \\\n "); end + # Generate makefile makefile=ARGV.grep(/.mk$/)[0] if makefile @@ -39,25 +41,33 @@ if makefile Dir.chdir dir rgen_generator=generator_files.map{ |f| "$(rgen_dir)/#{f}" } rgen_srcs=GenFiles.get.map{ |f| "#{Outdir}/#{f}" } - rgen_client_cpp = rgen_srcs.select { |f| f =~ /qpid\/client\/.+\.cpp$/ } - rgen_common_cpp = rgen_srcs.select { |f| f =~ /qpid\/framing\/.+\.cpp$/ } - rgen_h = rgen_srcs.select { |f| f =~ /.+\.h$/ } File.open(makefile, 'w') { |out| out << <