From 30d3d922762510eff83e0e55a93b0b0ad4885775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 21 Apr 2004 19:03:38 +0000 Subject: [PATCH] webserver target --- configure.in | 11 +++++----- makefile.am | 10 +++++++++ mrw/doxyfile.in | 4 ++-- mrw/exec.cpp | 2 -- mrw/exec_test.cpp | 39 ++++++++++++++++++++--------------- mrw/makefile.am | 33 ++++++++++++++++++++++------- mrw/{mrw.hpp => mrw.hpp.in} | 24 ++++++++++++++++++---- mrw/stacktrace_test.cpp | 41 +++++++++++++++++++------------------ 8 files changed, 108 insertions(+), 56 deletions(-) rename mrw/{mrw.hpp => mrw.hpp.in} (63%) diff --git a/configure.in b/configure.in index 5da78df..5e52115 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ -AC_INIT([mrw/mrw.hpp]) +AC_INIT([mrw/stacktrace.hpp]) PACKAGENAME=mrw-c++ MAJOR=0 -MINOR=01 +MINOR=10 SUPPORT=alfa AM_INIT_AUTOMAKE(@PACKAGENAME@, @MAJOR@.@MINOR@) @@ -19,8 +19,8 @@ AC_CHECK_PROG(have_doxygen, doxygen, yes, no) AC_CHECK_PROG(have_dot, dot, yes, no) # libraries -#AC_SEARCH_LIBS(demangle, iberty) -#AC_SEARCH_LIBS(, bfd) +AC_SEARCH_LIBS(cplus_demangle, iberty) +AC_SEARCH_LIBS(bfd_get_symbol_leading_char, bfd) # Arguments AM_MAINTAINER_MODE @@ -37,7 +37,8 @@ AC_SUBST(SUPPORT) AC_SUBST(PACKAGENAME) # create output -AC_CONFIG_FILES([makefile mrw/makefile mrw/doxyfile]) +AC_CONFIG_FILES([makefile mrw/makefile mrw/doxyfile mrw/mrw.hpp]) +AC_OUTPUT # infos and warnings if test "$have_doxygen" = "no"; then diff --git a/makefile.am b/makefile.am index 86da0ee..c938b07 100644 --- a/makefile.am +++ b/makefile.am @@ -1 +1,11 @@ SUBDIRS = mrw + +include_HEADERS = mrw/auto.hpp mrw/unistd.hpp \ + mrw/stacktrace.hpp mrw/exception.hpp \ + mrw/exec.hpp +data_DATA = AUTHORS NEWS README COPYING INSTALL ChangeLog + +webserver: doc dist + mkdir /home/www/marc/mrw-c++ + cp mrw/doc/html/* /home/www/marc/mrw-c++/ + cp @PACKAGENAME@-@MAJOR@.@MINOR@.tar.gz /home/www/marc/mrw-c++/ \ No newline at end of file diff --git a/mrw/doxyfile.in b/mrw/doxyfile.in index 644272a..49ace34 100644 --- a/mrw/doxyfile.in +++ b/mrw/doxyfile.in @@ -23,7 +23,7 @@ PROJECT_NAME = "MRW C++ Library" # This could be handy for archiving the generated documentation or # if some version control system is used. -PROJECT_NUMBER = experimental +PROJECT_NUMBER = "@MAJOR@.@MINOR@@SUPPORT@" # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. @@ -387,7 +387,7 @@ EXCLUDE_PATTERNS = # directories that contain example code fragments that are included (see # the \include command). -EXAMPLE_PATH = examples +EXAMPLE_PATH = examples .. # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp diff --git a/mrw/exec.cpp b/mrw/exec.cpp index 94acce6..ddc479a 100644 --- a/mrw/exec.cpp +++ b/mrw/exec.cpp @@ -4,8 +4,6 @@ #include // fork, exec #include // memcpy -#include - mrw::ExecutionFailedExc::ExecutionFailedExc(const std::string& w, const std::string& c) throw(std::bad_exception): diff --git a/mrw/exec_test.cpp b/mrw/exec_test.cpp index 2db1cb2..a00595f 100644 --- a/mrw/exec_test.cpp +++ b/mrw/exec_test.cpp @@ -1,22 +1,29 @@ #include #include +#include +#include +#include +#include +#include #include +class ExecTest: public CppUnit::TestFixture { +public: + void lsTest() { + std::string res = (mrw::Cmd("/bin/ls"), "-l", "..").execute(); + CPPUNIT_ASSERT(res.find("COPYING").tar.gz - cd mrw-c++- + tar xzvf mrw-c++-@MAJOR@.@MINOR@.tar.gz + cd mrw-c++-@MAJOR@.@MINOR@ ./configure make all check install @endverbatim */ + +/** @page license License + @verbinclude COPYING */ + +/** @page readme Readme + @verbinclude README */ + +/** @page news News + @verbinclude NEWS */ + +/** @page changes Change Log + @verbinclude ChangeLog */ diff --git a/mrw/stacktrace_test.cpp b/mrw/stacktrace_test.cpp index bd9f809..5cbf793 100644 --- a/mrw/stacktrace_test.cpp +++ b/mrw/stacktrace_test.cpp @@ -3,27 +3,28 @@ #include #include #include -#include -class StackTraceTest: public CppUnit::TestFixture { -public: - /// test if symbols are correctely evaluated - void StackTrace() { - mrw::StackTrace::createSymtable(); - mrw::StackTrace s; int l(__LINE__); std::string f(__FILE__); - std::stringstream ss; - ss<