Commit graph

4244 commits

Author SHA1 Message Date
Bradley M. Kuhn
fb6f60477f There needs to be at least 3 args here, clearly. 2012-09-07 12:48:51 -04:00
Bradley M. Kuhn
0e8a0e8fb2 A few fixes to make this work with Ledger 3.x instead of 2.6.2
* --wide-register-format is no long an option, use -F
  * %D now must be %(date)
2012-09-07 12:48:30 -04:00
Bradley M. Kuhn
6a104ecc3e Switch ledger binary to /usr/local/bin/ledger. 2012-09-07 12:45:29 -04:00
Bradley M. Kuhn
8c8973e6cb General ledger reporting script, used for preparing a report for non-profit auditors.
I developed this, and therefore have the full git commit history, in my
personal "Small-Hacks" repository, which can be cloned from:
      git://gitorious.org/bkuhn/small-hacks.git

More details on that are available by visiting:
      https://gitorious.org/bkuhn/small-hacks
2012-09-07 12:45:07 -04:00
Bradley M. Kuhn
7c57cf4e54 Initial test data for the non-profit-audit-reports contrib application.
The basic idea here is that given non-profit-test-data.ledger herein,
there should be a script that I could run, in this fashion:

    $ general-ledger-report -b 2011/03/01 -e 2012/03/01  -f tests/non-profit-test-data.ledger

that would generate:

   non-profit-test-data_chart-of-accounts.txt
   non-profit-test-data_general-ledger.ods

Note that the ODS file currently has placeholders, as I haven't fully
figured out how to use the =hyperlink() function to make relative
hyperlinks.
2012-09-06 20:31:48 -04:00
Bradley M. Kuhn
e98fcf3cb9 contrib/non-profit-audit-reports/ directory will be a small GPLv3'd application.
Upon discussion with John Wiegley <johnw@newartisans.com> on #ledger on
irc.freenode.net, the following was indicated:

<johnw> bkuhn: as long as the GPL infection stays in contrib, I see no problem
        with it
...
<bkuhn> ... I got the ... answer, which is "johnw will accept GPL'd stuff
        in contrib/..., as long as it's careful to not cause GPL to cover
        the main Ledger codebase that's not in contrib/..."

Therefore, the non-profit-audit-reports/ application will be licensed
GPLv3-or-later.
2012-09-06 20:31:48 -04:00
Bradley M. Kuhn
41a7184be3 FAQ entry on how build your own Boost and/or CMake for use with Ledger.
Debian squeeze, which is currently the stable distribution at the time of
this commit, has both a Boost and a CMake that is too old for Ledger.
This FAQ entry explains how to build your own Boost and CMake for use with
Ledger, and the exact commands to type to build and install each, and then
configure, build and install Ledger against those new versions.
2012-09-06 20:31:48 -04:00
Bradley M. Kuhn
cd2fef1c0f Correct cmake variable for install prefix is "CMAKE_INSTALL_PREFIX", not "CMAKE_PREFIX_PATH".
CMAKE_PREFIX_PATH is for searching for other programs, not for the place
to install this one.  Based on acprep's --help, I think the intention was
to use CMAKE_INSTALL_PREFIX here.
2012-09-06 20:31:48 -04:00
John Wiegley
779378288f Merge pull request #76 from bkuhn/cmake-python-prepend-version-search-list
Ledger's Python API is known to work best against Python 2.7 &/or 2.6
2012-09-06 13:17:19 -07:00
Bradley M. Kuhn
72fa58b7fb Ledger's Python API is known to work best against Python 2.7, then Python 2.6
Indeed, at the moment, it doesn't work against Python 3.x at all, so
ideally, we'd like to tell CMake that no Python versions except 2.7 and
2.6 are acceptable.  However, at least as of CMake 2.8.8, there appears to
be no way to instruct CMake to never consider other versions of Python.

In other words, Python_ADDITIONAL_VERSIONS is prepended to the list of
possible Python versions considered, rather than replacing it wholly.

Theoretically, we could try to diddle withe the internal CMake variables
_PYTHON_FIND_OTHER_VERSIONS or _Python_VERSIONS somehow, but that seems
kludgey and dangerous.  This patch is probably "enough for now" to at
least make sure that if the user has both Python 2.x and Python 3.x
installed, some version of 2.x that is known to work will be preferred.
2012-09-06 16:12:31 -04:00
John Wiegley
608d27a774 Merge pull request #74 from hwright/next
Fix a couple of compilation warnings
2012-08-16 08:51:08 -07:00
Martin Michlmayr
bb9ba01cd2 Typo fix 2012-08-15 12:24:32 +01:00
Hyrum Wright
73aa585efa Fix compilation warning: ensure a destructor is properly defined to avoid
compiler confusion.
2012-08-14 01:23:32 -04:00
Hyrum Wright
6ccb5e9687 Fix compilation warning: be sure we call the base class copy constructor. 2012-08-14 01:23:04 -04:00
John Wiegley
97693b43b5 Resolve account.date to latest post in the account 2012-08-09 16:56:53 -05:00
John Wiegley
e716995311 Patch reports with markers to allow xact shifting 2012-08-08 00:34:07 -05:00
John Wiegley
a54ee9047b Doc fix 2012-08-07 15:19:59 -05:00
John Wiegley
afc023406a Always store absolute paths internally 2012-08-02 16:13:58 -05:00
John Wiegley
2de6af2761 Don't use __has_feature in utils.cc 2012-08-02 13:11:24 -05:00
John Wiegley
f34a4e315e Change occurences of #+srcname to #+name 2012-08-01 16:08:43 -05:00
John Wiegley
8538878d8d Guard some function definitions for ASan 2012-07-30 23:24:15 -05:00
John Wiegley
14ab4f7775 Updated to Boost 1.50 2012-07-30 23:24:04 -05:00
John Wiegley
39ce225004 Added a link_directories statement 2012-07-30 23:20:55 -05:00
John Wiegley
d203393cab Allow non-register reports to work again 2012-07-30 22:35:21 -05:00
John Wiegley
e6acb5a9cc Require ldg-report from ldg-new (for now) 2012-07-30 22:32:29 -05:00
John Wiegley
628fc01962 Add ability to visit source line from ldg-report 2012-07-30 22:32:10 -05:00
John Wiegley
1751a8ee27 Change git:// submodule URL to http:// 2012-07-02 16:45:01 -05:00
John Wiegley
8869566331 Fixed a subtle memory overwrite
Fixes #608
2012-06-27 16:55:46 -05:00
John Wiegley
cbf4cba18b Fixed a minor documentation bug 2012-06-25 19:10:45 -05:00
John Wiegley
2720f79522 Fix reference to self.options.products_dir 2012-06-11 18:57:17 -05:00
John Wiegley
571d711523 Was missing a period 2012-06-08 15:06:11 -05:00
John Wiegley
b64dcf7202 Change self.prefix_dir -> self.options.prefix_dir 2012-06-07 22:37:38 -05:00
John Wiegley
c2cc47bc98 Reduce Boost dependency to 1.46 2012-05-30 21:44:36 -05:00
John Wiegley
ff589a1656 Also using Clang's PCH with my "cxx" compiler 2012-05-27 03:02:42 -05:00
John Wiegley
8917c929f2 Merge pull request #66 from egh/next
Remove keyword OPTIONAL_COMPONENTS, not present in cmake 2.8.7
2012-05-26 23:26:45 -07:00
Erik Hetzner
9dc812fb7e Remove keyword OPTIONAL_COMPONENTS, not present in cmake 2.8.7 2012-05-26 08:39:11 -07:00
John Wiegley
2512ad3051 Reduce minimum CMake version to 2.8.5 2012-05-25 04:14:27 -05:00
John Wiegley
98df1296fe Build fixes to acprep and build.sh 2012-05-25 04:13:14 -05:00
John Wiegley
ed150182fb Added script for building Boost with icc 2012-05-25 01:52:43 -05:00
John Wiegley
efee3d3244 Converted README to Markdown format 2012-05-25 01:52:33 -05:00
John Wiegley
8d9aeaaf19 Don't even look for Gettext, for now 2012-05-25 01:24:50 -05:00
John Wiegley
09f5f7e826 Don't explicitly disable multithreaded Boost 2012-05-23 05:29:28 -05:00
John Wiegley
636b878e70 Give a reasonable error if CMake cannot be found 2012-05-23 02:00:02 -05:00
John Wiegley
c404f94d64 Changed the way that LDFLAGS is passed to CMake 2012-05-20 22:45:17 -05:00
John Wiegley
d1444f4c97 Fixed a reference to HAVE_EDIT 2012-05-20 18:17:12 -05:00
John Wiegley
de7322b48c Handle NO_ASSERTS differently in CMakeLists.txt 2012-05-20 16:07:43 -05:00
John Wiegley
05d1704eb8 Removed an unnecessary #define 2012-05-20 16:06:43 -05:00
John Wiegley
54649d1b7a Make profiling builds work with Clang 2012-05-20 16:06:32 -05:00
John Wiegley
a916ed87bc Guard against an incorrect use of assert() 2012-05-20 15:31:49 -05:00
John Wiegley
0c1f40754a Build gcov mode also for Clang 2012-05-20 15:31:40 -05:00