/* THIS IS A GENERATED FILE. DO NOT EDIT IT HERE. */ /* pbmplus.c - wrapper program for merged pbmplus executables ** ** Copyright (C) 1991, 1994, 1999 by Jef Poskanzer. ** ** Permission to use, copy, modify, and distribute this software and its ** documentation for any purpose and without fee is hereby granted, provided ** that the above copyright notice appear in all copies and that both that ** copyright notice and this permission notice appear in supporting ** documentation. This software is provided "as is" without express or ** implied warranty. */ #include #include "pnm.h" int main( int argc, char* argv[] ) { register char* cp; again: if ( ( cp = rindex( argv[0], '/' ) ) != (char*) 0 ) ++cp; else cp = argv[0]; if ( strcmp( cp, "pbmplus" ) == 0 ) { ++argv; --argc; goto again; } #define TRY(s,m) { if ( strcmp( cp, s ) == 0 ) exit( m( argc, argv ) ); } TRY( "atktopbm", atktopbm_main ); TRY( "brushtopbm", brushtopbm_main ); TRY( "cmuwmtopbm", cmuwmtopbm_main ); TRY( "g3topbm", g3topbm_main ); TRY( "gemtopbm", gemtopbm_main ); TRY( "icontopbm", icontopbm_main ); TRY( "macptopbm", macptopbm_main ); TRY( "mgrtopbm", mgrtopbm_main ); TRY( "pbmlife", pbmlife_main ); TRY( "pbmmake", pbmmake_main ); TRY( "pbmmask", pbmmask_main ); TRY( "pbmreduce", pbmreduce_main ); TRY( "pbmtext", pbmtext_main ); TRY( "pbmto10x", pbmto10x_main ); TRY( "pbmtoascii", pbmtoascii_main ); TRY( "pbmtoatk", pbmtoatk_main ); TRY( "pbmtobbnbg", pbmtobbnbg_main ); TRY( "pbmtocmuwm", pbmtocmuwm_main ); TRY( "pbmtoepson", pbmtoepson_main ); TRY( "pbmtog3", pbmtog3_main ); TRY( "pbmtogem", pbmtogem_main ); TRY( "pbmtogo", pbmtogo_main ); TRY( "pbmtoicon", pbmtoicon_main ); TRY( "pbmtolj", pbmtolj_main ); TRY( "pbmtomacp", pbmtomacp_main ); TRY( "pbmtomgr", pbmtomgr_main ); TRY( "pbmtopi3", pbmtopi3_main ); TRY( "pbmtoplot", pbmtoplot_main ); TRY( "pbmtoptx", pbmtoptx_main ); TRY( "pbmtox10bm", pbmtox10bm_main ); TRY( "pbmtoxbm", pbmtoxbm_main ); TRY( "pbmtoybm", pbmtoybm_main ); TRY( "pbmtozinc", pbmtozinc_main ); TRY( "pbmupc", pbmupc_main ); TRY( "pi3topbm", pi3topbm_main ); TRY( "xbmtopbm", xbmtopbm_main ); TRY( "ybmtopbm", ybmtopbm_main ); TRY( "pbmto4425", pbmto4425_main ); TRY( "pbmtoepsi", pbmtoepsi_main ); TRY( "pbmtoln03", pbmtoln03_main ); TRY( "pbmtolps", pbmtolps_main ); TRY( "pbmclean", pbmclean_main ); TRY( "fstopgm", fstopgm_main ); TRY( "hipstopgm", hipstopgm_main ); TRY( "lispmtopgm", lispmtopgm_main ); TRY( "pgmbentley", pgmbentley_main ); TRY( "pgmenhance", pgmenhance_main ); TRY( "pgmhist", pgmhist_main ); TRY( "pgmnorm", pgmnorm_main ); TRY( "pgmoil", pgmoil_main ); TRY( "pgmramp", pgmramp_main ); TRY( "pgmtofs", pgmtofs_main ); TRY( "pgmtolispm", pgmtolispm_main ); TRY( "pgmtopbm", pgmtopbm_main ); TRY( "psidtopgm", psidtopgm_main ); TRY( "rawtopgm", rawtopgm_main ); TRY( "pgmcrater", pgmcrater_main ); TRY( "pgmedge", pgmedge_main ); TRY( "pgmtexture", pgmtexture_main ); TRY( "bioradtopgm", bioradtopgm_main ); TRY( "spottopgm", spottopgm_main ); TRY( "pgmnoise", pgmnoise_main ); TRY( "gouldtoppm", gouldtoppm_main ); TRY( "ilbmtoppm", ilbmtoppm_main ); TRY( "imgtoppm", imgtoppm_main ); TRY( "mtvtoppm", mtvtoppm_main ); TRY( "pcdtoppm", pcdtoppm_main ); TRY( "pcxtoppm", pcxtoppm_main ); TRY( "pgmtoppm", pgmtoppm_main ); TRY( "pi1toppm", pi1toppm_main ); TRY( "picttoppm", picttoppm_main ); TRY( "pjtoppm", pjtoppm_main ); TRY( "ppmdither", ppmdither_main ); TRY( "ppmhist", ppmhist_main ); TRY( "ppmmake", ppmmake_main ); TRY( "ppmquant", ppmquant_main ); TRY( "ppmqvga", ppmqvga_main ); TRY( "ppmrelief", ppmrelief_main ); TRY( "ppmtoacad", ppmtoacad_main ); TRY( "ppmtoicr", ppmtoicr_main ); TRY( "ppmtoilbm", ppmtoilbm_main ); TRY( "ppmtopcx", ppmtopcx_main ); TRY( "ppmtopgm", ppmtopgm_main ); TRY( "ppmtopi1", ppmtopi1_main ); TRY( "ppmtopict", ppmtopict_main ); TRY( "ppmtopj", ppmtopj_main ); TRY( "ppmtopuzz", ppmtopuzz_main ); TRY( "ppmtorgb3", ppmtorgb3_main ); TRY( "ppmtosixel", ppmtosixel_main ); TRY( "ppmtotga", ppmtotga_main ); TRY( "ppmtouil", ppmtouil_main ); TRY( "ppmtoxpm", ppmtoxpm_main ); TRY( "ppmtoyuv", ppmtoyuv_main ); TRY( "qrttoppm", qrttoppm_main ); TRY( "rawtoppm", rawtoppm_main ); TRY( "rgb3toppm", rgb3toppm_main ); TRY( "sldtoppm", sldtoppm_main ); TRY( "spctoppm", spctoppm_main ); TRY( "sputoppm", sputoppm_main ); TRY( "tgatoppm", tgatoppm_main ); TRY( "ximtoppm", ximtoppm_main ); TRY( "xpmtoppm", xpmtoppm_main ); TRY( "yuvtoppm", yuvtoppm_main ); TRY( "ppmforge", ppmforge_main ); TRY( "ppmpat", ppmpat_main ); TRY( "bmptoppm", bmptoppm_main ); TRY( "ppmtobmp", ppmtobmp_main ); TRY( "ppmtomitsu", ppmtomitsu_main ); TRY( "ppmtopjxl", ppmtopjxl_main ); TRY( "xvminitoppm", xvminitoppm_main ); TRY( "ppmtoyuvsplit", ppmtoyuvsplit_main ); TRY( "yuvsplittoppm", yuvsplittoppm_main ); TRY( "ppmbrighten", ppmbrighten_main ); TRY( "ppmchange", ppmchange_main ); TRY( "ppmdist", ppmdist_main ); TRY( "ppm3d", ppm3d_main ); TRY( "ppmmix", ppmmix_main ); TRY( "ppmnorm", ppmnorm_main ); TRY( "fitstopnm", fitstopnm_main ); TRY( "giftopnm", giftopnm_main ); TRY( "pnmtogif", pnmtogif_main ); TRY( "pnmarith", pnmarith_main ); TRY( "pnmcat", pnmcat_main ); TRY( "pnmconvol", pnmconvol_main ); TRY( "pnmcrop", pnmcrop_main ); TRY( "pnmcut", pnmcut_main ); TRY( "pnmdepth", pnmdepth_main ); TRY( "pnmdestega", pnmdestega_main ); TRY( "pnmdissect", pnmdissect_main ); TRY( "pnmenlarge", pnmenlarge_main ); TRY( "pnmfile", pnmfile_main ); TRY( "pnmflip", pnmflip_main ); TRY( "pnminvert", pnminvert_main ); TRY( "pnmnoraw", pnmnoraw_main ); TRY( "pnmpaste", pnmpaste_main ); TRY( "pnmscale", pnmscale_main ); TRY( "pnmstega", pnmstega_main ); TRY( "pnmtile", pnmtile_main ); TRY( "pnmtofits", pnmtofits_main ); TRY( "pnmtops", pnmtops_main ); TRY( "pnmtorast", pnmtorast_main ); TRY( "pnmtoxwd", pnmtoxwd_main ); TRY( "rasttopnm", rasttopnm_main ); TRY( "xwdtopnm", xwdtopnm_main ); TRY( "pnmgamma", pnmgamma_main ); TRY( "pnmrotate", pnmrotate_main ); TRY( "pnmshear", pnmshear_main ); TRY( "pnmntsc", pnmntsc_main ); TRY( "pnmdim", pnmdim_main ); TRY( "pnmshift", pnmshift_main ); TRY( "pnmspread", pnmspread_main ); TRY( "sgitopnm", sgitopnm_main ); TRY( "pnmtosgi", pnmtosgi_main ); TRY( "pnmtosir", pnmtosir_main ); TRY( "sirtopnm", sirtopnm_main ); TRY( "zeisstopnm", zeisstopnm_main ); TRY( "pnmtoddif", pnmtoddif_main ); TRY( "pnmalias", pnmalias_main ); TRY( "pnmcomp", pnmcomp_main ); TRY( "pnmnlfilt", pnmnlfilt_main ); TRY( "pnmflash", pnmflash_main ); TRY( "pnmquadrilateral", pnmquadrilateral_main ); #ifdef LIBTIFF TRY("pnmtotiff", pnmtotiff_main); TRY("tifftopnm", tifftopnm_main); #endif /*LIBTIFF*/ (void) fprintf( stderr, "pbmplus: \"%s\" is an unknown pbmplus program!\n", cp ); exit( 1 ); }