[sword-cvs] sword/src/mgr swmgr.cpp,1.100,1.101
sword@www.crosswire.org
sword@www.crosswire.org
Tue, 30 Mar 2004 12:35:17 -0700
- Previous message: [sword-cvs] sword-apidoc/html _greek2_greek_8h-source.html,1.11,1.12 _greek_chars_8h-source.html,1.11,1.12 apocrypha_8h-source.html,1.7,1.8 cdsourcemgr_8h-source.html,1.11,1.12 cipherfil_8h-source.html,1.11,1.12 echomod_8h-source.html,1.11,1.12 femain_8h-source.html,1.11,1.12 filemgr_8h-source.html,1.11,1.12 gbffootnotes_8h-source.html,1.11,1.12 gbfheadings_8h-source.html,1.11,1.12 gbfhtml_8h-source.html,1.11,1.12 gbfhtmlhref_8h-source.html,1.11,1.12 gbfmorph_8h-source.html,1.11,1.12 gbfosis_8h-source.html,1.11,1.12 gbfplain_8h-source.html,1.11,1.12 gbfredletterwords_8h-source.html,1.11,1.12 gbfrtf_8h-source.html,1.11,1.12 gbfstrongs_8h-source.html,1.11,1.12 gbfthml_8h-source.html,1.11,1.12 gbfwebif_8h-source.html,1.5,1.6 greeklexattribs_8h-source.html,1.11,1.12 hrefcom_8h-source.html,1.11,1.12 latin1utf16_8h-source.html,1.11,1.12 latin1utf8_8h-source.html,1.11,1.12 listkey_8h-source.html,1.11,1.12 localemgr_8h-source.html,1.11,1.12 lzsscomprs_8h-source.html,1.11,1.12 osisfootnotes_8h-source.html,1.5,1.6 osisheadings_8h-source.html,1.7,1.8 osishtmlhref_8h-source.html,1.5,1.6 osislemma_8h-source.html,1.5,1.6 osismorph_8h-source.html,1.11,1.12 osisosis_8h-source.html,1.1,1.2 osisplain_8h-source.html,1.11,1.12 osisredletterwords_8h-source.html,1.5,1.6 osisrtf_8h-source.html,1.11,1.12 osisscripref_8h-source.html,1.5,1.6 osisstrongs_8h-source.html,1.11,1.12 osiswebif_8h-source.html,1.1,1.2 plainfootnotes_8h-source.html,1.11,1.12 plainhtml_8h-source.html,1.11,1.12 rawcom_8h-source.html,1.11,1.12 rawfiles_8h-source.html,1.11,1.12 rawgbf_8h-source.html,1.11,1.12 rawgenbook_8h-source.html,1.11,1.12 rawld4_8h-source.html,1.11,1.12 rawld_8h-source.html,1.11,1.12 rawstr4_8h-source.html,1.11,1.12 rawstr_8h-source.html,1.11,1.12 rawtext_8h-source.html,1.11,1.12 remotesourcemgr_8h-source.html,1.11,1.12 rtfhtml_8h-source.html,1.11,1.12 scsuutf8_8h-source.html,1.11,1.12 strkey_8h-source.html,1.11,1.12 swbasicfilter_8h-source.html,1.11,1.12 swbuf_8h-source.html,1.11,1.12 swcacher_8h-source.html,1.11,1.12 swcipher_8h-source.html,1.11
- Next message: [sword-cvs] sword/src/mgr swmgr.cpp,1.101,1.102
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/core/sword/src/mgr
In directory www:/tmp/cvs-serv15853/src/mgr
Modified Files:
swmgr.cpp
Log Message:
Fix to only parse mods.d/*.conf files (joachim)
Index: swmgr.cpp
===================================================================
RCS file: /cvs/core/sword/src/mgr/swmgr.cpp,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -d -r1.100 -r1.101
--- swmgr.cpp 6 Feb 2004 21:01:01 -0000 1.100
+++ swmgr.cpp 30 Mar 2004 19:35:15 -0000 1.101
@@ -588,6 +588,11 @@
if ((dir = opendir(ipath))) {
rewinddir(dir);
while ((ent = readdir(dir))) {
+ //chck whether it ends with .conf, if it doesn't skip it!
+ if (strncmp(".conf", (ent->d_name + strlen(ent->d_name) - 5), 5 )) {
+ continue;
+ }
+
if ((strcmp(ent->d_name, ".")) && (strcmp(ent->d_name, ".."))) {
newmodfile = ipath;
if ((ipath[strlen(ipath)-1] != '\\') && (ipath[strlen(ipath)-1] != '/'))
@@ -601,6 +606,7 @@
}
}
closedir(dir);
+
if (!config) { // if no .conf file exist yet, create a default
newmodfile = ipath;
if ((ipath[strlen(ipath)-1] != '\\') && (ipath[strlen(ipath)-1] != '/'))
- Previous message: [sword-cvs] sword-apidoc/html _greek2_greek_8h-source.html,1.11,1.12 _greek_chars_8h-source.html,1.11,1.12 apocrypha_8h-source.html,1.7,1.8 cdsourcemgr_8h-source.html,1.11,1.12 cipherfil_8h-source.html,1.11,1.12 echomod_8h-source.html,1.11,1.12 femain_8h-source.html,1.11,1.12 filemgr_8h-source.html,1.11,1.12 gbffootnotes_8h-source.html,1.11,1.12 gbfheadings_8h-source.html,1.11,1.12 gbfhtml_8h-source.html,1.11,1.12 gbfhtmlhref_8h-source.html,1.11,1.12 gbfmorph_8h-source.html,1.11,1.12 gbfosis_8h-source.html,1.11,1.12 gbfplain_8h-source.html,1.11,1.12 gbfredletterwords_8h-source.html,1.11,1.12 gbfrtf_8h-source.html,1.11,1.12 gbfstrongs_8h-source.html,1.11,1.12 gbfthml_8h-source.html,1.11,1.12 gbfwebif_8h-source.html,1.5,1.6 greeklexattribs_8h-source.html,1.11,1.12 hrefcom_8h-source.html,1.11,1.12 latin1utf16_8h-source.html,1.11,1.12 latin1utf8_8h-source.html,1.11,1.12 listkey_8h-source.html,1.11,1.12 localemgr_8h-source.html,1.11,1.12 lzsscomprs_8h-source.html,1.11,1.12 osisfootnotes_8h-source.html,1.5,1.6 osisheadings_8h-source.html,1.7,1.8 osishtmlhref_8h-source.html,1.5,1.6 osislemma_8h-source.html,1.5,1.6 osismorph_8h-source.html,1.11,1.12 osisosis_8h-source.html,1.1,1.2 osisplain_8h-source.html,1.11,1.12 osisredletterwords_8h-source.html,1.5,1.6 osisrtf_8h-source.html,1.11,1.12 osisscripref_8h-source.html,1.5,1.6 osisstrongs_8h-source.html,1.11,1.12 osiswebif_8h-source.html,1.1,1.2 plainfootnotes_8h-source.html,1.11,1.12 plainhtml_8h-source.html,1.11,1.12 rawcom_8h-source.html,1.11,1.12 rawfiles_8h-source.html,1.11,1.12 rawgbf_8h-source.html,1.11,1.12 rawgenbook_8h-source.html,1.11,1.12 rawld4_8h-source.html,1.11,1.12 rawld_8h-source.html,1.11,1.12 rawstr4_8h-source.html,1.11,1.12 rawstr_8h-source.html,1.11,1.12 rawtext_8h-source.html,1.11,1.12 remotesourcemgr_8h-source.html,1.11,1.12 rtfhtml_8h-source.html,1.11,1.12 scsuutf8_8h-source.html,1.11,1.12 strkey_8h-source.html,1.11,1.12 swbasicfilter_8h-source.html,1.11,1.12 swbuf_8h-source.html,1.11,1.12 swcacher_8h-source.html,1.11,1.12 swcipher_8h-source.html,1.11
- Next message: [sword-cvs] sword/src/mgr swmgr.cpp,1.101,1.102
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]