From 4dd79912df861e7068d26479466d4bb45d72eadc Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 24 Feb 2009 21:53:34 +0000 Subject: [PATCH] 2009-02-24 22:52 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * utils/hbmk2/hbmk2.prg * On *nix platform hbmk.cfg is now first checked for in /usr/local/etc, then in /etc and after that in hbmk2's dir. Please advise if there are other such global config dirs to check on different platforms. --- harbour/ChangeLog | 7 +++++++ harbour/utils/hbmk2/hbmk2.prg | 11 ++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 8bf5f41f8a..c155361474 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,13 @@ 2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2009-02-24 22:52 UTC+0100 Viktor Szakats (harbour.01 syenar hu) + * utils/hbmk2/hbmk2.prg + * On *nix platform hbmk.cfg is now first checked for + in /usr/local/etc, then in /etc and after that in + hbmk2's dir. Please advise if there are other such + global config dirs to check on different platforms. + 2009-02-24 22:39 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * harbour-win-spec * harbour-wce-spec diff --git a/harbour/utils/hbmk2/hbmk2.prg b/harbour/utils/hbmk2/hbmk2.prg index abcad1bd5e..394f72e56a 100644 --- a/harbour/utils/hbmk2/hbmk2.prg +++ b/harbour/utils/hbmk2/hbmk2.prg @@ -2048,6 +2048,14 @@ STATIC PROCEDURE HBP_ProcessAll( lConfigOnly,; LOCAL aCFGDirs := { hb_DirBase() } + #if defined( __PLATFORM__WINDOWS ) .OR. ; + defined( __PLATFORM__DOS ) .OR. ; + defined( __PLATFORM__OS2 ) + aCFGDirs := { hb_DirBase() } + #else + aCFGDirs := { "/usr/local/etc", "/etc", hb_DirBase() } + #endif + FOR EACH cDir IN aCFGDirs IF hb_FileExists( cFileName := ( DirAddPathSep( cDir ) + HBMK_CFG_NAME ) ) IF t_lInfo @@ -2552,7 +2560,8 @@ STATIC PROCEDURE ShowHelp( lLong ) " - Regular Harbour options are also accepted." ,; " - Multiple -l, -L and