chiark / gitweb /
WIP upload setisland
[ypp-sc-tools.main.git] / pctb / convert.c
index c79477f80394810b5ead5abe7644500379693945..3ef5018fb1d3ca4167d2260113b68c993770447b 100644 (file)
@@ -231,7 +231,7 @@ int main(int argc, char **argv) {
        o_outmode_kind= omk_none;
        o_flags |= ff_singlepage;
       } else {
-       o_outmode_kind= omk_str;
+       o_outmode_kind= omk_upload;
       }
     }
 
@@ -292,9 +292,10 @@ int main(int argc, char **argv) {
   }
   if (o_mode & mf_analyse) {
     if (o_flags & ff_needisland) {
-      find_islandname();
+      find_islandname(page0_rgbimage);
       if (o_flags & ff_printisland)
        printf("%s, %s\n", archipelago, island);
+      sysassert(! setenv("YPPSC_ISLAND",island,1) );
     }
     switch (o_outmode_kind) {
     case omk_upload: case omk_str:   run_analysis();        break;