3
0
Fork 0

Can now deal with POSIX binary (not only with exe)

small_fixes
kelson42 14 years ago
parent a194c21303
commit d5438fe0ea

@ -122,9 +122,12 @@ int main(int argc, char **argv) {
/* Check if kiwixPath/kiwix/kiwix.exe exists */
string kiwixBinaryPath = computeAbsolutePath(kiwixPath, "kiwix/kiwix.exe");
if (!fileExists(kiwixBinaryPath)) {
cerr << "Unable to find the Kiwix Windows binary at '" << kiwixBinaryPath << "'." << endl;
kiwixBinaryPath = computeAbsolutePath(kiwixPath, "kiwix/kiwix");
if (!fileExists(kiwixBinaryPath)) {
cerr << "Unable to find the Kiwix binary at '" << kiwixBinaryPath << "[.exe]'." << endl;
exit(1);
}
}
/* Check if the directory "data" structure exists */
string dataPath = computeAbsolutePath(kiwixPath, "data/");

Loading…
Cancel
Save