diff options
author | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2013-10-29 00:01:21 +0800 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2013-10-29 00:01:21 +0800 |
commit | 9a3643501607bff8b314977931916081dd39646a (patch) | |
tree | 4bcb09701c3d16a6651746c21d438f96ac2e9226 /fish.cpp | |
parent | edc4614e6339f8e232d1c86d2fe4f15c91ced5b8 (diff) |
use docdir from configure in setting __fish_help_dir
Closes #1065
Diffstat (limited to 'fish.cpp')
-rw-r--r-- | fish.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -189,7 +189,8 @@ static struct config_paths_t determine_config_directory_paths(const char *argv0) paths.bin = base_path + L"/bin"; struct stat buf; - if (0 == wstat(paths.data, &buf) && 0 == wstat(paths.sysconf, &buf)) + if (0 == wstat(paths.data, &buf) && 0 == wstat(paths.sysconf, &buf) && + 0 == wstat(paths.doc, &buf)) { done = true; } @@ -202,7 +203,7 @@ static struct config_paths_t determine_config_directory_paths(const char *argv0) /* Fall back to what got compiled in. */ paths.data = L"" DATADIR "/fish"; paths.sysconf = L"" SYSCONFDIR "/fish"; - paths.doc = L"" DATADIR "/doc/fish"; + paths.doc = L"" DOCDIR; paths.bin = L"" BINDIR; done = true; |