chiark / gitweb /
wip upload testing
[ypp-sc-tools.db-test.git] / pctb / convert.c
index 2685e879c8d43c5ed409303945080c7e0fe48eb4..fa9837fa93e7279ce2c762ef4b816499dd486804 100644 (file)
@@ -57,12 +57,12 @@ static const char *o_outmode_str= 0;
 
 static enum mode o_mode= mode_all;
 static char *o_screenshot_fn;
-static int o_quiet;
 static const char *o_serv_pctb, *o_serv_dict_fetch, *o_serv_dict_submit;
 
 const char *o_resolver= "./dictionary-manager";
 FILE *screenshot_file;
 const char *o_ocean, *o_pirate;
+int o_quiet;
 
 enum flags o_flags= ff_dict_fetch|ff_dict_submit|ff_dict_pirate;
 
@@ -262,9 +262,10 @@ int main(int argc, char **argv) {
       badusage("need --ocean option when replaying images"
               " (consider supplying --pirate too)");
     sysassert(! setenv("YPPSC_OCEAN",ocean,1) );
-    if (pirate && (o_flags & ff_dict_pirate))
-      sysassert(! setenv("YPPSC_PIRATE",pirate,1) );
   }
+  if (pirate && (o_flags & ff_dict_pirate))
+    sysassert(! setenv("YPPSC_PIRATE",pirate,1) );
+
   if (o_mode & mf_screenshot) {
     open_screenshot_file("w");
     if (o_flags & ff_singlepage) take_one_screenshot();
@@ -288,6 +289,7 @@ int main(int argc, char **argv) {
     default: abort();
     }
   }
+  progress_log("Finished.");
   return 0;
 }