From d56f9c4032653927caa4162f6bd31b7cd890cf27 Mon Sep 17 00:00:00 2001 From: thdox Date: Sat, 1 Jun 2013 18:01:19 +0200 Subject: Improve documentation about differences between ledger 2.6 and ledger 3.0. GnuCash support removed, environment variables deprecated. --- src/global.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/global.cc') diff --git a/src/global.cc b/src/global.cc index a4da6ead..0061ad76 100644 --- a/src/global.cc +++ b/src/global.cc @@ -399,11 +399,13 @@ void global_scope_t::read_environment_settings(char * envp[]) process_option("environ", "init-file", report(), p, "LEDGER_INIT"); } if (const char * p = std::getenv("PRICE_HIST")) { - if (! std::getenv("LEDGER_PRICEDB")) + if (! std::getenv("LEDGER_PRICE_DB")) process_option("environ", "price-db", report(), p, "PRICE_HIST"); } - if (const char * p = std::getenv("PRICE_EXP")) - process_option("environ", "price-exp", report(), p, "PRICE_EXP"); + if (const char * p = std::getenv("PRICE_EXP")) { + if (! std::getenv("LEDGER_PRICE_EXP")) + process_option("environ", "price-exp", report(), p, "PRICE_EXP"); + } #endif TRACE_FINISH(environment, 1); -- cgit v1.2.3