diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-12-11 09:36:33 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-12-11 09:36:33 +0000 |
commit | 9be0014e2170ff27036f7f1fafcb4d85f78fd180 (patch) | |
tree | 9f42b5b59ec9dee2c5cbc0540c7bb595ecc79a6c /misc/sword15/files/patch-src::mgr::swmgr.cpp | |
parent | add zh-pycodec (diff) |
add sword
A project framework for manipulating Bible texts
PR: 28450
Submitted by: Willem van Engen <wvengen@stack.nl>
Notes
Notes:
svn path=/head/; revision=51339
Diffstat (limited to 'misc/sword15/files/patch-src::mgr::swmgr.cpp')
-rw-r--r-- | misc/sword15/files/patch-src::mgr::swmgr.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/misc/sword15/files/patch-src::mgr::swmgr.cpp b/misc/sword15/files/patch-src::mgr::swmgr.cpp new file mode 100644 index 000000000000..8fbcea84d1bb --- /dev/null +++ b/misc/sword15/files/patch-src::mgr::swmgr.cpp @@ -0,0 +1,33 @@ +--- src/mgr/swmgr.cpp.orig Tue May 22 22:05:15 2001 ++++ src/mgr/swmgr.cpp Tue May 22 22:05:53 2001 +@@ -263,25 +263,25 @@ + } + + +- // check for systemwide /etc/sword.conf ++ // check for systemwide /usr/local/etc/sword.conf + + if (debug) +- cerr << "\nChecking for /etc/sword.conf..."; ++ cerr << "\nChecking for /usr/local/etc/sword.conf..."; + +- if ((fd = ::open("/etc/sword.conf", O_RDONLY)) > 0) { ++ if ((fd = ::open("/usr/local/etc/sword.conf", O_RDONLY)) > 0) { + ::close(fd); + + if (debug) + cerr << "found\n"; + +- SWConfig etcconf("/etc/sword.conf"); ++ SWConfig etcconf("/usr/local/etc/sword.conf"); + if ((entry = etcconf.Sections["Install"].find("DataPath")) != etcconf.Sections["Install"].end()) { + path = (*entry).second; + if (((*entry).second.c_str()[strlen((*entry).second.c_str())-1] != '\\') && ((*entry).second.c_str()[strlen((*entry).second.c_str())-1] != '/')) + path += "/"; + + if (debug) +- cerr << "DataPath in /etc/sword.conf is set to: " << path; ++ cerr << "DataPath in /usr/local/etc/sword.conf is set to: " << path; + + if (debug) + cerr << "\nChecking for mods.conf in DataPath "; |