X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.main.git;a=blobdiff_plain;f=pctb%2Fconvert.c;h=3ef5018fb1d3ca4167d2260113b68c993770447b;hp=3bc7554525e9299968c26196bb19ad1f23b420d8;hb=aa127c2da311a71c71985fe4cad616420ac34dd2;hpb=49e1be1a94ba3dc9d951056ebec2784286d3e928 diff --git a/pctb/convert.c b/pctb/convert.c index 3bc7554..3ef5018 100644 --- a/pctb/convert.c +++ b/pctb/convert.c @@ -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; } } @@ -295,6 +295,7 @@ int main(int argc, char **argv) { 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;