aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish.cpp
diff options
context:
space:
mode:
authorGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2013-10-29 00:01:21 +0800
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2013-10-29 00:01:21 +0800
commit9a3643501607bff8b314977931916081dd39646a (patch)
tree4bcb09701c3d16a6651746c21d438f96ac2e9226 /fish.cpp
parentedc4614e6339f8e232d1c86d2fe4f15c91ced5b8 (diff)
use docdir from configure in setting __fish_help_dir
Closes #1065
Diffstat (limited to 'fish.cpp')
-rw-r--r--fish.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/fish.cpp b/fish.cpp
index c61eb582..ca5d50e9 100644
--- a/fish.cpp
+++ b/fish.cpp
@@ -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;