Commit graph

4474 commits

Author SHA1 Message Date
Craig Earls
19eb2cab1b Divorces 25A099C9 from the actual amount.h source file
This test appears to test the garbage input handling on ledger.
garbage-input.dat has been added to the test directory for use by this
test, allowing development with amount.h to proceed without tripping
this particular test inappropriately
2013-01-30 16:43:47 -07:00
John Wiegley
b21ee1de17 Merge branch 'next' of github.com:ledger/ledger into next 2013-01-30 17:01:00 -06:00
John Wiegley
ccca974dad Use -O3 with Clang instead of -O4 2013-01-30 17:00:22 -06:00
John Wiegley
2b245f823b Added missing call to timelog.close() 2013-01-30 17:00:07 -06:00
John Wiegley
7e0666b013 build.sh now installs into Homebrew's Cellar 2013-01-30 16:59:55 -06:00
John Wiegley
be7af24250 Upgrade to Boost 1.52 2013-01-30 16:59:42 -06:00
Johann Klähn
20217e7c9c fix --no-python option
This would fail with `ValueError: list.remove(x): x not in list`.
2013-01-30 23:38:11 +01:00
Johann Klähn
9e3652dd4f acprep: pass options starting with -D to CMake 2013-01-30 23:37:29 +01:00
Johann Klähn
5ee03de0ad fix option handling in acprep
Both the `--local` option and the default to build local if no build
directory exists did not work, because `build_directory()` uses
`self.options.build_dir`, but the default and the `--local` option used
`self.build_dir`.
I changed the code to always use `self.options` for options/flags.
Now `self.options` is set to the default values of OptParser and is
updated when `parse_args` is called in `run`.

After this commit ledger will be built in:
  * The directory specified using `--output=`
  * Else in a subdirectory of `./build` or `~/Products` if one of those
    directories exist and `--local` is not used.
  * Else inside the source tree (default).
2013-01-30 23:07:17 +01:00
Craig Earls
45ebed0fd5 Merge pull request #139 from enderw88/ledger-mode-reports-patch-reports-defun
Removed call to ledger-reports-patch-reports
2013-01-30 12:32:56 -08:00
Craig Earls
97550db9bd Removed call to ledger-reports-patch-reports
This function was never defined and appeared to nothing.  I caused errors
on some system by not existing.
2013-01-30 13:27:51 -07:00
Johann Klähn
383c341d88 fix CMake variable expansion for man2html 2013-01-29 23:31:39 +01:00
John Wiegley
2c7ab8be39 Merge pull request #138 from enderw88/ledger-mode-licensing-and-comments
Added GPL licensing information to lisp files
2013-01-29 13:26:08 -08:00
John Wiegley
b14573fdb4 Merge pull request #137 from enderw88/default-pricedb-bug
Fixed problem finding the default priced file.
2013-01-29 13:15:16 -08:00
Craig Earls
1903ff7c2e Fixed problem finding the default priced file.
Bug fix to detect badly specified priced files on the command line didn't handle the default correctly.
2013-01-29 14:10:08 -07:00
Craig Earls
eff1472337 Added GPL licensing information to lisp files 2013-01-29 13:57:22 -07:00
Craig Earls
c235b59a68 Merge branch 'documentation-work' into next 2013-01-29 13:26:47 -07:00
Craig Earls
2ecb03878f Documented the tags command.
Documented that the account and commodities command now sort.
2013-01-29 13:26:31 -07:00
Craig Earls
153b9c53cd Merge branch 'documentation-work' into next 2013-01-29 13:15:50 -07:00
Craig Earls
b9dbf54d9a Improved emacs section. Now documents all behavior. 2013-01-29 13:13:30 -07:00
John Wiegley
e1da55d1af Merge pull request #90 from rladams/next
Next
2013-01-29 12:04:40 -08:00
John Wiegley
6410f391f9 Merge pull request #135 from enderw88/emacs-mode-easy-load
Fixed the new ledger mod so that loading leg-new.el is sufficient
2013-01-29 12:04:10 -08:00
John Wiegley
de8974c6e5 Merge pull request #136 from enderw88/ledger-mode-fix-year-and-month
Fixes the set-year and set-month functions
2013-01-29 12:03:59 -08:00
John Wiegley
3745983925 Merge pull request #134 from enderw88/Fix-aux-date-regression
Fixes regression error introduced by tags command patch
2013-01-29 12:03:48 -08:00
Craig Earls
619b6abd5c Fixes the set-year and set-month functions
Also adds current year and month to the entry prompt.
2013-01-29 12:47:27 -07:00
Craig Earls
426e105651 Fixed the new ledger mod so that loading leg-new.el is sufficient
The reconcile package and the xact package didn't provide themselves, and the leg-new
module didn't load up everything it needed.
2013-01-29 12:16:47 -07:00
Craig Earls
1b3dfa1297 Fixes regression error introduced by tags command patch
Not sure how the changes to the options got into the repot.cc file, but this takes the changes out.
2013-01-29 11:26:43 -07:00
John Wiegley
1e709d1040 Merge pull request #132 from enderw88/bug514-sort-accounts-and-commodities
Fixes bug 514.  accounts and commodities output now sorts
2013-01-29 09:36:03 -08:00
John Wiegley
69001d927a Merge pull request #131 from enderw88/add-tags-command
Addes tags command and --values option
2013-01-29 09:35:02 -08:00
John Wiegley
0e91b174b5 Merge pull request #114 from bkuhn/non-profit-reports-all-csv-and-better-sorting
Contrib: Non profit reports: generate only CSV files, better sorting, more flexible hyperlinks & pagebreaks
2013-01-29 09:34:31 -08:00
John Wiegley
ec7402fff8 Merge pull request #107 from afh/pull/time_colon
Add --time-colon option
2013-01-29 09:34:08 -08:00
John Wiegley
a5adcaad3e Merge pull request #133 from enderw88/Bug705-862-init-file-and-pricedb
Fixes bugs 705 and 862.
2013-01-29 09:33:38 -08:00
Craig Earls
aba5c1aa46 Fixes bugs 705 and 862. Ledger now fails if init or pricedb files are specified on the command line but not found. 2013-01-29 10:30:18 -07:00
Craig Earls
f9da94c909 Fixes bug 514. accounts and commodities output now sorts
updated tests included.
2013-01-29 10:03:47 -07:00
Craig Earls
3e72a51dc3 Addes tags command and --values option
Tags command reports all metadat tags in use.  With the
values option it reports tags and their values.
2013-01-29 09:42:10 -07:00
John Wiegley
0385ef35b1 Merge pull request #130 from enderw88/ledger-mode-fixes
fixes the reconcile mode, adds menus for all modes
2013-01-29 08:03:48 -08:00
Craig Earls
0bbff75f43 fixes the reconcile mode, adds menus for all modes
thanks to dk for the is-std defun.
2013-01-29 08:50:50 -07:00
Craig Earls
5d1971ee51 Added Huququ'llah calculation back in.
Example was inadvertantly removed
while writing the Automated Transaction section.
2013-01-25 07:26:55 -07:00
Johann Klähn
de128c9481 do not auto-build documentation
Use 'ninja doc' or 'make doc' instead.
2013-01-19 23:27:08 +01:00
Johann Klähn
54c14f9770 improve doxygen build logic
Doxygen will only be called when the 'doc' target is built
and one of its input files has changed.
2013-01-19 23:05:17 +01:00
Johann Klähn
b66c19b1f8 doxygen: enable search and folding 2013-01-19 13:27:15 +01:00
Johann Klähn
d5323000ca update Doxyfile.in (using doxygen -u) 2013-01-19 13:24:29 +01:00
Johann Klähn
252bc9bcf5 only run doxygen once
To update the documentation run `ninja doxygen` or `make doxygen`.
2013-01-19 13:22:59 +01:00
Johann Klähn
b3b11bed3b Merge branch 'master' into next
Some commits were on the master branch but not yet on the next branch due to a
pull request to master after those two branches diverged. This merge
ensures that next ⊇ master.
2013-01-18 18:26:03 +01:00
John Wiegley
83bd3234d3 Merge pull request #123 from kljohann/bug.788
change handling of standard input
2013-01-17 12:36:17 -08:00
Johann Klähn
3fe2ef5956 change handling of standard input
For `-f /dev/stdin`, the `pathname` of the parsing context will be empty
as for any other streamed input.

`instance_t::include_directive` did not work as expected for `-f /dev/stdin`
and relative file names. One would expect them to be relative to the current
directory rather than `/dev`.

This will lead to `While parsing file ""` messages. This could be
adjusted to read `While parsing standard input`, but maybe it's not
worth the special cases.

This commit also fixes bug 788: behaviour of source_context for '-f -'
2013-01-17 12:19:23 +01:00
Johann Klähn
ea249423d4 allow -f /dev/stdin in test runner 2013-01-17 12:08:20 +01:00
Johann Klähn
74a1f63efb fix ctest rules 2013-01-17 09:30:36 +01:00
John Wiegley
9252c5f1f3 Revert "Bug551 fixed, commodities and accounts now sort"
This reverts commit 67a598f6ff.
2013-01-16 18:14:34 -06:00
John Wiegley
d1c96190e9 Revert "fix bug 788: behaviour of source_context for '-f -'"
This reverts commit 0a1ff03542.
2013-01-16 18:10:30 -06:00