Mercurial > hg > octave-nkf
diff src/octave.cc @ 3141:292ff0bf484b
[project @ 1998-02-03 08:11:07 by jwe]
author | jwe |
---|---|
date | Tue, 03 Feb 1998 08:11:22 +0000 |
parents | fe2d1ae8926b |
children | a494f93e60ff |
line wrap: on
line diff
--- a/src/octave.cc +++ b/src/octave.cc @@ -170,22 +170,17 @@ // This may seem odd, but doing it this way means that we don't have // to modify the kpathsea library... - string odb = octave_env::getenv ("OCTAVE_DB_DIR"); + string odb = octave_env::getenv ("OCTAVE_DB_PATH"); + + // For backward compatibility. if (odb.empty ()) - { - string oh = octave_env::getenv ("OCTAVE_HOME"); + odb = octave_env::getenv ("OCTAVE_DB_DIR"); - if (oh.empty ()) - octave_env::putenv ("TEXMF", OCTAVE_DATADIR "/octave"); - else - { - oh.append ("/lib/octave"); - octave_env::putenv ("TEXMF", oh); - } - } - else - octave_env::putenv ("TEXMF", odb); + if (odb.empty ()) + odb = Vdata_dir + string ("/octave:") + Vlibexec_dir + string ("/octave"); + + octave_env::putenv ("TEXMFDBS", odb); } // Initialize by reading startup files.