mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2026-01-10 15:08:15 -05:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6914eb34f | ||
|
|
b65212fab7 | ||
|
|
83427af3d2 | ||
|
|
d572bf875d | ||
|
|
833c997782 | ||
|
|
44613aae5d |
@@ -1,3 +1,8 @@
|
||||
kiwix-tools 3.0.3
|
||||
=================
|
||||
|
||||
* [MANAGER] Fix broken --version argument parsin
|
||||
|
||||
kiwix-tools 3.0.2
|
||||
=================
|
||||
|
||||
|
||||
@@ -16,3 +16,10 @@ fi
|
||||
CMD="/usr/local/bin/kiwix-serve --port=80 $@"
|
||||
echo $CMD
|
||||
$CMD
|
||||
|
||||
# If error, print the content of /data
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo "Here is the content of /data:"
|
||||
find /data -type f
|
||||
fi
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
project('kiwix-tools', 'cpp',
|
||||
version : '3.0.2',
|
||||
version : '3.0.3',
|
||||
license : 'GPL',
|
||||
default_options: ['c_std=c11', 'cpp_std=c++11', 'werror=true'])
|
||||
|
||||
|
||||
@@ -119,7 +119,6 @@ int handle_add(kiwix::Library* library, const std::string& libraryPath,
|
||||
string zimPath;
|
||||
string zimPathToSave = ".";
|
||||
string url;
|
||||
string origID = "";
|
||||
int option_index = 0;
|
||||
int c = 0;
|
||||
int resultCode = 0;
|
||||
@@ -133,7 +132,6 @@ int handle_add(kiwix::Library* library, const std::string& libraryPath,
|
||||
optind = 3;
|
||||
static struct option long_options[] = {
|
||||
{"url", required_argument, 0, 'u'},
|
||||
{"origId", required_argument, 0, 'o'},
|
||||
{"zimPathToSave", required_argument, 0, 'z'},
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
@@ -149,9 +147,6 @@ int handle_add(kiwix::Library* library, const std::string& libraryPath,
|
||||
case 'u':
|
||||
url = optarg;
|
||||
break;
|
||||
case 'o':
|
||||
origID = optarg;
|
||||
break;
|
||||
case 'z':
|
||||
zimPathToSave = optarg;
|
||||
break;
|
||||
@@ -228,7 +223,7 @@ int main(int argc, char** argv)
|
||||
|
||||
int option_index = 0;
|
||||
int c;
|
||||
while (true) {
|
||||
while (true && argc == 2) {
|
||||
c = getopt_long(argc, argv, "v", long_options, &option_index);
|
||||
if (c == -1)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user