X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fconvert.c;h=fa9837fa93e7279ce2c762ef4b816499dd486804;hb=3d80a86a8c77e29a26e70aa810ebb2dea607208e;hp=2685e879c8d43c5ed409303945080c7e0fe48eb4;hpb=0487d41d9c7796c6efebb8235c9aa39fe580ccf9;p=ypp-sc-tools.db-test.git diff --git a/pctb/convert.c b/pctb/convert.c index 2685e87..fa9837f 100644 --- a/pctb/convert.c +++ b/pctb/convert.c @@ -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; }