No description
Find a file
John Wiegley 0876d31157 (amount_t::valid): Don't verify the commodity as being non-null, since
NULL is a perfectly valid value for a commodity (it just means
null_commodity).  Also, never use commodity_->member, but always
commodity().member.
2008-04-13 02:41:25 -04:00
scripts *** empty log message *** 2008-04-13 02:40:48 -04:00
acprep Use libtoolize if glibtoolize can't be found. 2008-04-13 02:41:22 -04:00
amount.cc (amount_t::valid): Don't verify the commodity as being non-null, since 2008-04-13 02:41:25 -04:00
amount.h *** empty log message *** 2008-04-13 02:41:17 -04:00
balance.cc Removed Python integration support. 2008-04-13 02:41:21 -04:00
balance.h updated to version 2.0 2008-04-13 02:40:47 -04:00
binary.cc Transactions now track their beginning and ending position, as do 2008-04-13 02:41:24 -04:00
binary.h Made several changes to the parsing infrastructure to allow passing 2008-04-13 02:41:23 -04:00
config.cc *** empty log message *** 2008-04-13 02:41:23 -04:00
config.h Added support for outputting to CSV format. 2008-04-13 02:41:21 -04:00
configure.in Added build logic for the Emacs file. 2008-04-13 02:41:22 -04:00
datetime.cc (parse): The period phrase "every month" was not working (it required 2008-04-13 02:41:23 -04:00
datetime.h Added input_format' array, and made formats' external. 2008-04-13 02:41:10 -04:00
debug.cc updated to version 2.0 2008-04-13 02:40:47 -04:00
debug.h updated to version 2.0 2008-04-13 02:40:47 -04:00
derive.cc (derive_new_entry): Added an error check if only a payee is specified 2008-04-13 02:41:21 -04:00
derive.h updated to version 2.0 2008-04-13 02:40:47 -04:00
emacs.cc Transactions now track their beginning and ending position, as do 2008-04-13 02:41:24 -04:00
emacs.h Added an Emacs formatter, accessible with the new "emacs" command. 2008-04-13 02:40:56 -04:00
error.h updated to version 2.0 2008-04-13 02:40:47 -04:00
fdstream.hpp Whitespace changes. 2008-04-13 02:41:01 -04:00
format.cc Added a check for null. 2008-04-13 02:41:24 -04:00
format.h Transactions now track their beginning and ending position, as do 2008-04-13 02:41:24 -04:00
gnucash.cc Transactions now track their beginning and ending position, as do 2008-04-13 02:41:24 -04:00
gnucash.h Made several changes to the parsing infrastructure to allow passing 2008-04-13 02:41:23 -04:00
journal.cc (add_entry): Run `entry_finalize_hooks' before finalizing an entry. 2008-04-13 02:41:24 -04:00
journal.h Fixed some compiler complaints. 2008-04-13 02:41:25 -04:00
ledger.el (ledger-run-ledger): Report better error messages if 2008-04-13 02:41:24 -04:00
ledger.h Restructed the code that it can build and be used as a shared library. 2008-04-13 02:41:21 -04:00
ledger.texi *** empty log message *** 2008-04-13 02:41:24 -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 Made several changes to the parsing infrastructure to allow passing 2008-04-13 02:41:23 -04:00
Makefile.am *** empty log message *** 2008-04-13 02:41:22 -04:00
mask.cc Changes to support building with gcc 2.95. 2008-04-13 02:40:57 -04:00
mask.h updated to version 2.0 2008-04-13 02:40:47 -04:00
NEWS *** empty log message *** 2008-04-13 02:41:22 -04:00
ofx.cc Made several changes to the parsing infrastructure to allow passing 2008-04-13 02:41:23 -04:00
ofx.h Made several changes to the parsing infrastructure to allow passing 2008-04-13 02:41:23 -04:00
option.cc Removed Python integration support. 2008-04-13 02:41:21 -04:00
option.h Fixed some compiler complaints. 2008-04-13 02:41:25 -04:00
parser.cc Made several changes to the parsing infrastructure to allow passing 2008-04-13 02:41:23 -04:00
parser.h Made several changes to the parsing infrastructure to allow passing 2008-04-13 02:41:23 -04:00
qif.cc Made several changes to the parsing infrastructure to allow passing 2008-04-13 02:41:23 -04:00
qif.h Made several changes to the parsing infrastructure to allow passing 2008-04-13 02:41:23 -04:00
quotes.cc Added a safety check to see if moment is less than date. 2008-04-13 02:41:21 -04:00
quotes.h updated to version 2.0 2008-04-13 02:40:47 -04:00
README Removed Python integration support. 2008-04-13 02:41:21 -04:00
reconcile.cc Removed Python integration support. 2008-04-13 02:41:21 -04:00
reconcile.h Removed the --reconcilable option, since the pending flag is now being 2008-04-13 02:41:05 -04:00
sample.dat updated to version 2.0 2008-04-13 02:40:47 -04:00
startup.cc Restructed the code that it can build and be used as a shared library. 2008-04-13 02:41:21 -04:00
textual.cc (parse): Do not balance automated entries: they are now balanced as 2008-04-13 02:41:25 -04:00
textual.h Made several changes to the parsing infrastructure to allow passing 2008-04-13 02:41:23 -04:00
timeclock.el Removed Python integration support. 2008-04-13 02:41:21 -04:00
timing.h Restructed the code that it can build and be used as a shared library. 2008-04-13 02:41:21 -04:00
util.h Added a fix for FreeBSD, so that Ledger can compile there. 2008-04-13 02:40:59 -04:00
valexpr.cc Removed Python integration support. 2008-04-13 02:41:21 -04:00
valexpr.h Removed Python integration support. 2008-04-13 02:41:21 -04:00
value.cc Removed Python integration support. 2008-04-13 02:41:21 -04:00
value.h updated to version 2.0 2008-04-13 02:40:47 -04:00
walk.cc Removed Python integration support. 2008-04-13 02:41:21 -04:00
walk.h Restructed the code that it can build and be used as a shared library. 2008-04-13 02:41:21 -04:00
xml.cc (entries::format_last_entry): XML format now always uses the same date 2008-04-13 02:41:25 -04:00
xml.h Made several changes to the parsing infrastructure to allow passing 2008-04-13 02:41:23 -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.