diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-06-28 17:21:21 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-06-28 17:21:21 +0000 |
commit | 0d513aca5cbbb8db0a9d127e101ac3b534cc8bf0 (patch) | |
tree | 3e8db9f13fb33464324c6986e7d80540a42a86c7 /netpbm.c | |
parent | 7dd37058c4c8e0f6ca272e329162a52f958e4951 (diff) | |
download | netpbm-mirror-0d513aca5cbbb8db0a9d127e101ac3b534cc8bf0.tar.gz netpbm-mirror-0d513aca5cbbb8db0a9d127e101ac3b534cc8bf0.tar.xz netpbm-mirror-0d513aca5cbbb8db0a9d127e101ac3b534cc8bf0.zip |
promote Stable to Super Stable
git-svn-id: http://svn.code.sf.net/p/netpbm/code/super_stable@4557 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'netpbm.c')
-rw-r--r-- | netpbm.c | 46 |
1 files changed, 3 insertions, 43 deletions
diff --git a/netpbm.c b/netpbm.c index eeb82acc..a9a0bf81 100644 --- a/netpbm.c +++ b/netpbm.c @@ -30,7 +30,7 @@ int main(int argc, char *argv[]) { const char * cp; - + if (strcmp(pm_arg0toprogname(argv[0]), "netpbm") == 0) { ++argv; --argc; @@ -45,7 +45,7 @@ main(int argc, char *argv[]) { } cp = pm_arg0toprogname(argv[0]); - + /* merge.h is an automatically generated file that generates code to match the string 'cp' against the name of every program that is part of this merge and, upon finding a match, invoke that program. @@ -55,48 +55,8 @@ main(int argc, char *argv[]) { #include "mergetrylist" - /* Add the obsolete names for some programs */ - TRY("bmptoppm", main_bmptopnm); - TRY("gemtopbm", main_gemtopnm); - TRY("icontopbm", main_sunicontopnm); - TRY("pbmtoicon", main_pbmtosunicon); - TRY("pgmedge", main_pamedge); - TRY("pgmnorm", main_pnmnorm); - TRY("pgmoil", main_pamoil); - TRY("pgmslice", main_pamslice); - TRY("pnmarith", main_pamarith); - TRY("pngtopnm", main_pngtopam); - TRY("pnmarith", main_pamarith); - TRY("pnmcomp", main_pamcomp); - TRY("pnmcut", main_pamcut); - TRY("pnmdepth", main_pamdepth); - TRY("pnmfile", main_pamfile); - TRY("pnminterp", main_pamstretch); - TRY("pnmenlarge", main_pamenlarge); - TRY("pnmscale", main_pamscale); - TRY("pnmsplit", main_pamsplit); - TRY("pnmtofits", main_pamtofits); - TRY("pnmtopnm", main_pamtopnm); - TRY("ppmnorm", main_pnmnorm); - TRY("ppmtotga", main_pamtotga); - TRY("ppmtouil", main_pamtouil); - TRY("pnmtopnm", main_pamtopnm); - TRY("ppmnorm", main_pnmnorm); - TRY("ppmtotga", main_pamtotga); - - /* We don't do the ppmtojpeg alias because if user doesn't have a JPEG - library, there is no main_pnmtojpeg library. The right way to do - this is to have these TRY's generated by the subdirectory makes, - which would know whether pnmtojpeg was built into the merged binary - or not. But that's too much work. Same with TIFF and PNG converters. - - TRY("ppmtojpeg", main_pnmtojpeg); - TRY("pngtopnm", main_pngtopam); - TRY("pnmtotiff", main_pamtotiff); - TRY("pamrgbatopng", main_pamtopng); - */ - fprintf(stderr,"'%s' is an unknown Netpbm program name \n", cp ); + exit(1); } |