From 2943af2761e6ac5064db077046e230fa1c2b06dd Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 24 Aug 2004 19:23:32 -0400 Subject: misc maintenance changes --- acprep | 20 ++++++++++++++++++++ configure.ac | 4 ++-- ledger.cc | 3 ++- scripts/acprep | 17 ----------------- 4 files changed, 24 insertions(+), 20 deletions(-) create mode 100755 acprep delete mode 100755 scripts/acprep diff --git a/acprep b/acprep new file mode 100755 index 00000000..ac68b52b --- /dev/null +++ b/acprep @@ -0,0 +1,20 @@ +#!/bin/sh + +aclocal + +if [ "$1" = "--dist" ]; then + automake -acfi +else + automake -acf +fi + +autoheader +autoconf + +if [ "$1" = "--debug" ]; then + ./configure CPPFLAGS="-I/sw/include -I/usr/include/httpd/xml" \ + LDFLAGS=-L/sw/lib CXXFLAGS="-g" --enable-debug +elif [ "$1" = "--opt" ]; then + ./configure CPPFLAGS="-I/sw/include -I/usr/include/httpd/xml" \ + LDFLAGS=-L/sw/lib CXXFLAGS="-O3 -fomit-frame-pointer" +fi diff --git a/configure.ac b/configure.ac index 6ce08aeb..682cd261 100644 --- a/configure.ac +++ b/configure.ac @@ -2,8 +2,8 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) -AC_INIT(ledger, 2.0, johnw@netartisans.com) -AM_INIT_AUTOMAKE(ledger, 2.0) +AC_INIT(ledger, 2.0b, johnw@netartisans.com) +AM_INIT_AUTOMAKE(ledger, 2.0b) AC_CONFIG_SRCDIR([main.cc]) AC_CONFIG_HEADER([acconf.h]) diff --git a/ledger.cc b/ledger.cc index a5b0f51a..91b1985c 100644 --- a/ledger.cc +++ b/ledger.cc @@ -1,12 +1,13 @@ #include "ledger.h" #include "valexpr.h" #include "datetime.h" +#include "acconf.h" #include namespace ledger { -const std::string version = "2.0b"; +const std::string version = PACKAGE_VERSION; bool transaction_t::valid() const { diff --git a/scripts/acprep b/scripts/acprep deleted file mode 100755 index 71e3a415..00000000 --- a/scripts/acprep +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -aclocal - -if [ "$1" = "--dist" ]; then - automake -acfi -else - automake -acf -fi - -autoheader -autoconf - -if [ "$1" = "--gen" ]; then - ./configure CPPFLAGS="-I/sw/include -I/usr/include/httpd/xml" \ - LDFLAGS=-L/sw/lib CXXFLAGS="-g" --enable-debug -fi -- cgit v1.2.3