No description
Find a file
2008-04-13 03:35:36 -04:00
docs Miscellaneous changes 2008-04-13 03:35:33 -04:00
gdtoa Started adding commodity tests 2008-04-13 03:35:35 -04:00
ledger.xcodeproj Miscellaneous changes 2008-04-13 03:35:32 -04:00
scripts Added a new script that enables use of Ledger as a smart "du". 2008-04-13 02:41:31 -04:00
tests Got most of the commodity tests working, save multiplication and division. 2008-04-13 03:35:36 -04:00
acconf.h.in Added all of the files necessary for building with configure (i.e., so 2008-04-13 03:35:34 -04:00
aclocal.m4 Started adding commodity tests 2008-04-13 03:35:35 -04:00
acprep Started adding commodity tests 2008-04-13 03:35:35 -04:00
amount.cc Got most of the commodity tests working, save multiplication and division. 2008-04-13 03:35:36 -04:00
amount.h Got most of the commodity tests working, save multiplication and division. 2008-04-13 03:35:36 -04:00
amounts.cc (read_binary_journal): Fixed a tiny memory leak when reading from a 2008-04-13 02:41:28 -04:00
AUTHORS Miscellaneous changes 2008-04-13 03:35:34 -04:00
balance.cc Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
balance.h Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
binary.cc Removed all uses of PCH (which was far more trouble than it was worth). 2008-04-13 03:35:31 -04:00
binary.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
compile make distcheck now works. 2008-04-13 03:35:34 -04:00
config.cc Made separate modules for the csv command, since the prior method was 2008-04-13 02:41:33 -04:00
config.guess Started adding commodity tests 2008-04-13 03:35:35 -04:00
config.h Made separate modules for the csv command, since the prior method was 2008-04-13 02:41:33 -04:00
config.sub Started adding commodity tests 2008-04-13 03:35:35 -04:00
configure Started adding commodity tests 2008-04-13 03:35:35 -04:00
configure.in *** no comment *** 2008-04-13 03:35:34 -04:00
COPYING Added a reference to gdtoa, for doing expected conversion of double to amount. 2008-04-13 03:35:33 -04:00
csv.cc Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
csv.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
datetime.cc Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
datetime.h Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
debug.cc Removed all uses of PCH (which was far more trouble than it was worth). 2008-04-13 03:35:31 -04:00
debug.h make distcheck now works. 2008-04-13 03:35:34 -04:00
depcomp Started adding commodity tests 2008-04-13 03:35:35 -04:00
derive.cc Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
derive.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
emacs.cc Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
emacs.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
error.h Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
fdstream.hpp Whitespace changes. 2008-04-13 02:41:01 -04:00
format.cc Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
format.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
gnucash.cc Cleaned up warnings revealed by building with Xcode. 2008-04-13 03:35:32 -04:00
gnucash.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
install-sh Started adding commodity tests 2008-04-13 03:35:35 -04:00
journal.cc Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
journal.h Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
ledger.el *** no comment *** 2008-04-13 03:35:35 -04:00
ledger.h Miscellaneous changes 2008-04-13 03:35:31 -04:00
ledger.texi *** no comment *** 2008-04-13 03:35:32 -04:00
ledger.vim *** empty log message *** 2008-04-13 02:41:17 -04:00
LICENSE Miscellaneous changes 2008-04-13 03:35:31 -04:00
ltmain.sh Added all of the files necessary for building with configure (i.e., so 2008-04-13 03:35:34 -04:00
main.cc make distcheck now works. 2008-04-13 03:35:34 -04:00
Makefile.am Started adding commodity tests 2008-04-13 03:35:35 -04:00
Makefile.in Started adding commodity tests 2008-04-13 03:35:35 -04:00
mask.cc Removed all uses of PCH (which was far more trouble than it was worth). 2008-04-13 03:35:31 -04:00
mask.h Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
missing Started adding commodity tests 2008-04-13 03:35:35 -04:00
NEWS Miscellaneous changes 2008-04-13 03:35:31 -04:00
ofx.cc Removed all uses of PCH (which was far more trouble than it was worth). 2008-04-13 03:35:31 -04:00
ofx.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
option.cc Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
option.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
parser.cc Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
parser.h Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
py_amount.cc Finished uncommoditized amount unit tests. 2008-04-13 03:35:35 -04:00
py_eval.cc Miscellaneous changes 2008-04-13 03:35:32 -04:00
py_eval.h Miscellaneous changes 2008-04-13 03:35:32 -04:00
pyfstream.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
pyledger.cc Miscellaneous changes 2008-04-13 03:35:32 -04:00
pyledger.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
PyUnitTests.py changes 2008-04-13 03:35:35 -04:00
qif.cc Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
qif.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
quotes.cc Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
quotes.h Reworked the way date/times are handled. 2008-04-13 02:41:32 -04:00
README Removed Python integration support. 2008-04-13 02:41:21 -04:00
reconcile.cc Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
reconcile.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
report.cc Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
report.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
session.cc Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
session.h Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
setup.py Added python tests. 2008-04-13 03:35:33 -04:00
startup.cc Added a DATETIME value type. 2008-04-13 02:41:29 -04:00
test.py Added much better error location. 2008-04-13 02:41:29 -04:00
textual.cc make distcheck now works. 2008-04-13 03:35:34 -04:00
textual.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
timeclock.el Removed Python integration support. 2008-04-13 02:41:21 -04:00
timing.h Added a DATETIME value type. 2008-04-13 02:41:29 -04:00
trace.cc Removed all uses of PCH (which was far more trouble than it was worth). 2008-04-13 03:35:31 -04:00
trace.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
transform.cc Removed all uses of PCH (which was far more trouble than it was worth). 2008-04-13 03:35:31 -04:00
transform.h Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
util.cc Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
util.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
valexpr.cc *** empty log message *** 2008-04-13 02:41:32 -04:00
valexpr.h *** empty log message *** 2008-04-13 02:41:32 -04:00
value.cc Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
value.h Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
walk.cc Reworked the way date/times are handled. 2008-04-13 02:41:32 -04:00
walk.h Reworked the way date/times are handled. 2008-04-13 02:41:32 -04:00
xml.cc Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
xml.h Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
xmlparse.cc Cleaned up warnings revealed by building with Xcode. 2008-04-13 03:35:32 -04:00
xmlparse.h Check in all changes made so far toward 3.0. 2008-04-13 03:35:00 -04:00
xpath.cc Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -04:00
xpath.h Cleared out all warnings; started work on getting Python up again. 2008-04-13 03:35:32 -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.