summaryrefslogtreecommitdiff
path: root/utilities/mkfastmod.cpp
diff options
context:
space:
mode:
authorRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:52 -0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:52 -0400
commit148bd343f3e7e32d141f66b5b5c9b98b2975b0b3 (patch)
tree31078963b85110d57310759016e60e8d26ccb1e6 /utilities/mkfastmod.cpp
parent8c8aa6b07e595cfac56838b5964ab3e96051f1b2 (diff)
Imported Upstream version 1.5.8
Diffstat (limited to 'utilities/mkfastmod.cpp')
-rw-r--r--utilities/mkfastmod.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/utilities/mkfastmod.cpp b/utilities/mkfastmod.cpp
deleted file mode 100644
index 2553af6..0000000
--- a/utilities/mkfastmod.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-#include <stdio.h>
-#include <rawtext.h>
-#include <swmgr.h>
-#ifndef NO_SWORD_NAMESPACE
-using sword::SWMgr;
-using sword::SWModule;
-using sword::ListKey;
-using sword::VerseKey;
-using sword::ModMap;
-#endif
-
-int main(int argc, char **argv)
-{
- SWMgr manager(0,0,true);
- SWModule *target;
- ListKey listkey;
- VerseKey vk;
- ModMap::iterator it;
-
- if (argc != 2) {
- fprintf(stderr, "usage: %s <modname>\n", argv[0]);
- exit(-1);
- }
-
- it = manager.Modules.find(argv[1]);
- if (it == manager.Modules.end()) {
- fprintf(stderr, "Could not find module [%s]. Available modules:\n", argv[1]);
- for (it = manager.Modules.begin(); it != manager.Modules.end(); it++) {
- fprintf(stderr, "[%s]\t - %s\n", (*it).second->Name(), (*it).second->Description());
- }
- exit(-1);
- }
- target = it->second;
-
- if (!target->hasSearchFramework()) {
- fprintf(stderr, "%s: error: %s does not support a search framework.\n", *argv, it->second->Name());
- exit(-2);
- }
-
- printf("Building framework, please wait...\n");
- char error = target->createSearchFramework();
- if (error) {
- fprintf(stderr, "%s: couldn't create search framework (permissions?)\n", *argv);
- }
-}