about summary refs log tree commit diff
path: root/converter/other
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-12-09 01:41:07 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-12-09 01:41:07 +0000
commit19f4c74b6fbe3a3c3b7ab961040adcad200b25a1 (patch)
treed5b49bb366f028b8c2922523a95c25d591705990 /converter/other
parent4dd3bf19f65a5d3d414a5fe8b2387bd02b1d535b (diff)
downloadnetpbm-mirror-19f4c74b6fbe3a3c3b7ab961040adcad200b25a1.tar.gz
netpbm-mirror-19f4c74b6fbe3a3c3b7ab961040adcad200b25a1.tar.xz
netpbm-mirror-19f4c74b6fbe3a3c3b7ab961040adcad200b25a1.zip
Remove latex2html hack from pamtogif, since it's needed only in ppmtogif
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@164 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rw-r--r--converter/other/pamtogif.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/converter/other/pamtogif.c b/converter/other/pamtogif.c
index 872d407b..74629f1a 100644
--- a/converter/other/pamtogif.c
+++ b/converter/other/pamtogif.c
@@ -134,34 +134,6 @@ pamAlphaPlane(struct pam * const pamP) {
 
 
 static void
-handleLatex2htmlHack(void) {
-/*----------------------------------------------------------------------------
-  This program used to put out a "usage" message when it saw an option
-  it didn't understand.  Latex2html's configure program does a
-  ppmtogif -h (-h was never a valid option) to elicit that message and
-  then parses the message to see if it included the strings
-  "-interlace" and "-transparent".  That way it knows if the
-  'ppmtogif' program it found has those options or not.  I don't think
-  any 'ppmtogif' you're likely to find today lacks those options, but
-  latex2html checks anyway, and we don't want it to conclude that we
-  don't have them.
-
-  So we issue a special error message just to trick latex2html into
-  deciding that we have -interlace and -transparent options.  The function
-  is not documented in the man page.  We would like to see Latex2html 
-  either stop checking or check like configure programs usually do -- 
-  try the option and see if you get success or failure.
-
-  -Bryan 2001.11.14
------------------------------------------------------------------------------*/
-     pm_error("latex2html, you should just try the -interlace and "
-              "-transparent options to see if they work instead of "
-              "expecting a 'usage' message from -h");
-}
-
-
-
-static void
 parseCommandLine(int argc, char ** argv,
                  struct cmdlineInfo * const cmdlineP) {
 /*----------------------------------------------------------------------------
@@ -177,8 +149,6 @@ parseCommandLine(int argc, char ** argv,
     optStruct3 opt;  /* set by OPTENT3 */
     unsigned int option_def_index;
 
-    unsigned int latex2htmlhack;
-
     MALLOCARRAY_NOFAIL(option_def, 100);
 
     option_def_index = 0;   /* incremented by OPTENT3 */
@@ -196,8 +166,6 @@ parseCommandLine(int argc, char ** argv,
             &cmdlineP->comment,        NULL, 0);
     OPTENT3(0,   "alphacolor",  OPT_STRING, 
             &cmdlineP->alphacolor,     NULL, 0);
-    OPTENT3(0,   "h",           OPT_FLAG, 
-            NULL,                       &latex2htmlhack, 0);
     OPTENT3(0,   "verbose",     OPT_FLAG, 
             NULL,                       &cmdlineP->verbose, 0);
     
@@ -217,9 +185,6 @@ parseCommandLine(int argc, char ** argv,
     optParseOptions3(&argc, argv, opt, sizeof(opt), 0);
         /* Uses and sets argc, argv, and some of *cmdlineP and others. */
 
-    if (latex2htmlhack) 
-        handleLatex2htmlHack();
-
     if (argc-1 == 0) 
         cmdlineP->input_filespec = "-";
     else if (argc-1 != 1)