No description
Find a file
John Wiegley d86a91d45b The new XPath parser has been integrated, although I have removed the
XML-related bits -- I just wanted the better infrastructure that had been
created during the rewrite.  It doesn't work, but it compiles and links now.
This means that all of the previous 3.0 code has been moved over, although
there are still snippets of code in pending/old that need to be restored.
2008-07-20 23:12:04 -04:00
scripts Added a new script that enables use of Ledger as a smart "du". 2008-04-13 02:41:31 -04:00
test Got the unit tests compiling again (though not running yet). 2008-05-09 05:17:44 -04:00
.gitignore Merged in bug fixes from master (done for 2.6.1b) 2008-07-19 21:36:34 -04:00
acprep Changed the target directory within ~/Products. 2008-07-20 21:17:49 -04:00
amount.cc Some basic fixes to get things almost running, although we still can't parse 2008-07-19 23:10:37 -04:00
amount.h Some basic fixes to get things almost running, although we still can't parse 2008-07-19 23:10:37 -04:00
amounts.cc (read_binary_journal): Fixed a tiny memory leak when reading from a 2008-04-13 02:41:28 -04:00
balance.cc The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
balance.h Added helper methods for comparing a balance to a balance_pair. 2008-07-17 21:22:24 -04:00
balpair.h Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
binary.cc The new XPath parser has been integrated, although I have removed the 2008-07-20 23:12:04 -04:00
binary.h Brought in the final round of 3.0 code, although it does not compile yet: 2008-07-20 05:03:54 -04:00
commodity.cc The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
commodity.h The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
config.cc The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
config.h The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
configure.tmpl Renamed configure.in to configure.tmpl. 2008-05-11 20:50:12 -04:00
csv.cc Brought in the final round of 3.0 code, although it does not compile yet: 2008-07-20 05:03:54 -04:00
csv.h Made separate modules for the csv command, since the prior method was 2008-04-13 02:41:33 -04:00
derive.cc Merged in bug fixes from master (done for 2.6.1b) 2008-07-19 21:36:34 -04:00
derive.h updated to version 2.0 2008-04-13 02:40:47 -04:00
emacs.cc Brought in the final round of 3.0 code, although it does not compile yet: 2008-07-20 05:03:54 -04:00
emacs.h Added an Emacs formatter, accessible with the new "emacs" command. 2008-04-13 02:40:56 -04:00
error.h The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
fdstream.hpp Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
flags.h Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
format.cc The new XPath parser has been integrated, although I have removed the 2008-07-20 23:12:04 -04:00
format.h Brought in the final round of 3.0 code, although it does not compile yet: 2008-07-20 05:03:54 -04:00
gnucash.cc Everything but main.cc is compiling again (but with much #if 0'd code). 2008-07-20 06:00:06 -04:00
gnucash.h The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
journal.cc Things are at least compiling and linking again, but we're still far from 2008-07-20 21:17:26 -04:00
journal.h Things are at least compiling and linking again, but we're still far from 2008-07-20 21:17:26 -04:00
ledger.el Merged in bug fixes from master (done for 2.6.1b) 2008-07-19 21:36:34 -04:00
ledger.h The new XPath parser has been integrated, although I have removed the 2008-07-20 23:12:04 -04:00
ledger.texi Removed incorrect statement about there being no Emacs mode for Ledger. Fixes 2008-07-16 03:59:49 -04:00
ledger.vim *** empty log message *** 2008-04-13 02:41:17 -04:00
LICENSE *** empty log message *** 2008-04-13 02:41:21 -04:00
main.cc Things are at least compiling and linking again, but we're still far from 2008-07-20 21:17:26 -04:00
main.py Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
Makefile.am The new XPath parser has been integrated, although I have removed the 2008-07-20 23:12:04 -04:00
mask.cc Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
mask.h Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
NEWS Updated the version number to 2.6.1. 2008-07-17 23:28:05 -04:00
ofx.cc The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
ofx.h The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
option.cc Brought in the final round of 3.0 code, although it does not compile yet: 2008-07-20 05:03:54 -04:00
option.h Brought in the final round of 3.0 code, although it does not compile yet: 2008-07-20 05:03:54 -04:00
parser.cc Brought in the final round of 3.0 code, although it does not compile yet: 2008-07-20 05:03:54 -04:00
parser.h The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
parsexp.cc The new XPath parser has been integrated, although I have removed the 2008-07-20 23:12:04 -04:00
parsexp.h The new XPath parser has been integrated, although I have removed the 2008-07-20 23:12:04 -04:00
pushvar.h Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
py_amount.cc Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
py_commodity.cc Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
py_times.cc Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
py_utils.cc Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
pyfstream.h Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
pyinterp.cc Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
pyinterp.h Commented out code that's not being used yet. 2008-07-19 21:02:58 -04:00
pyledger.cc Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
pyledger.h Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
pyutils.h Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
qif.cc The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
qif.h The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
quotes.cc The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
quotes.h The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
README Removed Python integration support. 2008-04-13 02:41:21 -04:00
reconcile.cc The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
reconcile.h Reworked the way date/times are handled. 2008-04-13 02:41:32 -04:00
report.cc Brought in the final round of 3.0 code, although it does not compile yet: 2008-07-20 05:03:54 -04:00
report.h Brought in the final round of 3.0 code, although it does not compile yet: 2008-07-20 05:03:54 -04:00
sample.dat updated to version 2.0 2008-04-13 02:40:47 -04:00
session.cc The new XPath parser has been integrated, although I have removed the 2008-07-20 23:12:04 -04:00
session.h Brought in the final round of 3.0 code, although it does not compile yet: 2008-07-20 05:03:54 -04:00
setup.py Updated the version number to 2.6.1. 2008-07-17 23:28:05 -04:00
startup.cc The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
system.hh The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
test.py Added much better error location. 2008-04-13 02:41:29 -04:00
textual.cc The new XPath parser has been integrated, although I have removed the 2008-07-20 23:12:04 -04:00
textual.h The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
timeclock.el Removed Python integration support. 2008-04-13 02:41:21 -04:00
times.cc The new XPath parser has been integrated, although I have removed the 2008-07-20 23:12:04 -04:00
times.h The new XPath parser has been integrated, although I have removed the 2008-07-20 23:12:04 -04:00
tuples.hpp Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
utils.cc The new XPath parser has been integrated, although I have removed the 2008-07-20 23:12:04 -04:00
utils.h The new XPath parser has been integrated, although I have removed the 2008-07-20 23:12:04 -04:00
valexpr.cc The new XPath parser has been integrated, although I have removed the 2008-07-20 23:12:04 -04:00
valexpr.h The new XPath parser has been integrated, although I have removed the 2008-07-20 23:12:04 -04:00
valgrind.sh Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
value.cc Merged in bug fixes from master (done for 2.6.1b) 2008-07-19 21:36:34 -04:00
value.h The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00
version Migrated over both code and build environment from was-v3.0 branch. 2008-05-08 02:50:19 -04:00
walk.cc Everything but main.cc is compiling again (but with much #if 0'd code). 2008-07-20 06:00:06 -04:00
walk.h Brought in the final round of 3.0 code, although it does not compile yet: 2008-07-20 05:03:54 -04:00
xml.cc I have walked further along the road less compiled by... 2008-07-20 05:32:09 -04:00
xml.h The code is compiling again, but it's far from being able to run yet. 2008-05-08 02:50:19 -04:00

			  Welcome to Ledger

		 the command-line accounting program

Introduction
============

Ledger is an accounting program which is invoked from the command-line
using a textual ledger file.  To start using Ledger, you will need to
create such a file containing your financial transactions.  A sample
has been provided in the file "sample.dat".  See the documentation
(ledger.pdf, or ledger.info) for full documentation on creating a
ledger file and using Ledger to generate reports.

Once you have such a file -- you might call it "ledger.dat" -- you can
start looking at balances and account registers using commands like
the following:

  ledger -f ledger.dat balance assets:checking
  ledger -f ledger.dat register expenses:food

This assumes, of course, that like the sample file you use account
names such as "Assets:Checking" and "Expenses:Food".  If you use other
account names, you will need to vary the reporting commands you use
accordingly.


Building
========

To build Ledger, you will need a fairly modern C++ compiler (gcc 2.95
will not work), and at least these two libraries installed:

    gmp        GNU multi-precision library
    pcre       Perl regular expression library

(On some GNU/Linux systems, the packages you need to install are
called "gmp-dev" and "pcre-dev").

If you wish to read Gnucash data files, you will also need two XML
libraries, which may or may not be available in a single package (it
depends on your distribution):

    libexpat, or libxmlparse and libxmltok

Once you have determined where the headers and libraries for the above
packages are installed, run the script "configure", passing those
paths.  If you installed everything under /usr/local, you can probably
just type "./configure".  Otherwise, do this:

    ./configure CPPFLAGS=-I<INCLUDE-PATH>  LDFLAGS=-L<LIBRARY-PATH>

If you need to specify multiple include or library paths, then do
this:

    ./configure CPPFLAGS="-I<PATH1> -I<PATH2>"  LDFLAGS="-L<PATH1> -L<PATH2>"

Once configure is done running, just type:

    make install


Mailing List and IRC
====================

If you need help on how to use Ledger, or run into problems, you can
join the Ledger mailing list at the following Web address:

    https://lists.sourceforge.net/lists/listinfo/ledger-discuss

You can also find help at the #ledger channel on the IRC server
irc.freenode.net.