X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fconvert.c;h=8101fb920a40adafad02ab92ed4efd5181c2ae44;hb=579edbc3e615ade4ac65296eeaff383ac19fe9b1;hp=f3b87fea193de43d825417e706ec0ecad1175404;hpb=ef1a9d783f52a2d304e5872b6bb1f066621a5acf;p=ypp-sc-tools.web-live.git diff --git a/pctb/convert.c b/pctb/convert.c index f3b87fe..8101fb9 100644 --- a/pctb/convert.c +++ b/pctb/convert.c @@ -92,7 +92,7 @@ static void run_analysis(void) { analyse(tf); if (o_flags & ff_upload) { - if (o_flags & ff_singlepage) + if (npages<=1) fatal("Recognition successful, but refusing to upload partial data\n" " (--single-page specified). Specify an output mode?"); } @@ -127,7 +127,7 @@ void fetch_with_rsync(const char *stem) { if (DEBUGP(rsync)) fprintf(stderr,"executing rsync to fetch %s to %s\n",remote,local); execlp(rsync, "rsync", - DEBUGP(rsync) ? "-vLt" : "-Lt", + DEBUGP(rsync) ? "-zvLt" : "-zLt", "--",remote,local,(char*)0); sysassert(!"exec rsync failed"); } @@ -305,7 +305,7 @@ int main(int argc, char **argv) { } if (o_mode & mf_analyse) { if (o_flags & ff_needisland) { - find_islandname(page0_rgbimage); + find_islandname(page_images[0]->rgb); if (o_flags & ff_printisland) printf("%s, %s\n", archipelago, island); sysassert(! setenv("YPPSC_ISLAND",island,1) );