diff options
author | thdox <thdox@free.fr> | 2013-06-01 18:01:19 +0200 |
---|---|---|
committer | thdox <thdox@free.fr> | 2013-06-01 18:01:19 +0200 |
commit | d56f9c4032653927caa4162f6bd31b7cd890cf27 (patch) | |
tree | f5675040d3f71a38d019ebc99b9b07962a357f7a /src | |
parent | 0b2065f809fa1380943356f5a6e47db23c5ed643 (diff) | |
download | fork-ledger-d56f9c4032653927caa4162f6bd31b7cd890cf27.tar.gz fork-ledger-d56f9c4032653927caa4162f6bd31b7cd890cf27.tar.bz2 fork-ledger-d56f9c4032653927caa4162f6bd31b7cd890cf27.zip |
Improve documentation about differences between ledger 2.6 and ledger 3.0.
GnuCash support removed, environment variables deprecated.
Diffstat (limited to 'src')
-rw-r--r-- | src/global.cc | 8 |
1 files changed, 5 insertions, 3 deletions
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); |