 echo "$HELPTAGPASS2 complete."
fi


# Remove the intermediate files ...
# Note: currently the save option is set to save no intermediate files ...
if [ "$background" = "no" ]
then
  echo "Removing intermediate files."
fi

if [ "$save" != yes ]
then
  $RM $workfile.'snb'
  $RM $workfile.'idx'
  $RM $workfile.'xrh'
fi


# All done ...
echo DONE >> $statfile
echo "Done."
split_name"
# or "get_tail".
reset()
{
true
}


# function to parse a file name.
parse_name()
{
# don't try to get extension if file ends indt/bin/dthelpview                                                                                   0100555 0000002 0000002 00000047550 06354621325 0013745 0                                                                                                    ustar 00bin                             bin                             0000040 0000016                                                                                                                                                                        ELF                  4  KX     4    (        4  4                                                             1>  1>           1@ 1@      Q  F`           1D 1D                  /usr/lib/ld.so.1                 \       q       ;   "   5       n   D                              p   C       l          O                       >       d   }               ]   =       w       _           %   S                                           y   ^       B           W       /   `   '   -   z             ~   ?   M   (   V       b           +      !   K               U   R               Y   h   c   F   m           {                       x       2   e   3           6   s   T       v                       Q   #   P           <       t   .   r       u   k       H       )           [           i                                                                                                                                                                                                                                               4           7           0       9                       $               E       @   :                                      A                   8           &       J       a   I          1   Z                   L       f   g       X       o           j   *       ,                  N   G   |                                                     X                                 (           @           |                 	     /      
     /           0           0            0$           1@           1D           2           4           4           6           9                                                                                              3           4x           9        $ 3X          6      	   = 4          Q 3          _ 40          w 4           2           9         4         w          3d           4`           9        v0  @!         X  	    <  1J                    1@         2         , n$       7 4         P 2D         W 2P         \ #X    	  g 34         q n(       { 2          n0       2          /   8  
   4          3          v,        3(          5        3          2          3          1D         2          4         ) 3|         0 v0  @    6 3         I 4T         ] 3         d H    	  q 2         y 4H                	   2          wp        2\                        4   !     5        5        4<          5        3         . wt       > 3@         P 2         b 3         i 2t         r 9        y 2         '0    	   3          2                     3          2          6             	   1>         0         wx        !  x  	   3         1 4          A 4l         M      	  R w       h 4$         u 4          4          2h          3          4        w        /   8     w        4          w        w        3L               	   w        3p        XSetCommand XmGetColors appDisplay _DtHelpFileLocate _start XmCreateLabelGadget XtManageChild _DtHelpTurnOffHourGlass XmCreateSeparatorGadget _DtEnvControl manText _environ _end strdup XmCreateForm XtShellStrings _iob ProcessLinkCB _XmStrings _ex_register _GLOBAL_OFFSET_TABLE_ DtHelpSetCatalogName viewWidget XmCreatePushButtonGadget atexit exit DisplayMan XtWarning manWidget malloc XtStrings XtDisplay _init XmCreateTextField XtAddCallback runMode XtMainLoop ___Argv DtHelpQuickDialogGetChild Dt_nlInit XmStringFree _DYNAMIC XtInitialize XMapWindow printf __iob DtCreateHelpDialog XmCreateDialogShell strcat DisplayTopic strrchr XmAddProtocolCallback GetFromCache XtGetApplicationResources pCacheListTale _exit _ex_deregister environ __cg89_used __cg92_used XmInternAtom __fnonstd_used XmStringCreateLocalized totalCacheNodes _DtHelpGetMessage XtSetLanguageProc strcmp XtMalloc _edata _PROCEDURE_LINKAGE_TABLE_ PostManDialog XtFree XtSetValues __fsr_init_value XtDestroyWidget strcpy __xpg4 CloseAndExitCB _etext _lib_version manBtn DisplayFile DtCreateHelpQuickDialog XmUpdateDisplay XtGetValues main _DtHelpFileSuffixList XRaiseWindow _DtHelpTurnOnHourGlass XtSetSensitive strlen strstr __environ_lock manForm _fini topLevel XmTextFieldGetString closeBtn helpClass fprintf CloseHelpCB pCacheListHead XtUnmanageChild libDtHelp.so.1 SUNW_1.1 SUNWprivate_1.1 libDtSvc.so.1 SUNWprivate_1.1 libXm.so.3 SUNW_1.2 libc.so.1 SYSVABI_1.3 libDtHelp.so.1 libDtSvc.so.1 libXm.so.3 libXt.so.4 libX11.so.4 libSDtFwa.so.1 libc.so.1 /usr/dt/lib:/usr/openwin/lib      *      0
='      9   Nq      B        R       Nq      `        p       
='      {               7̳           4  T     4  /     n0  :     v0  I     w  r     <  .     9  +     2D  4     2P  5     2\  S     2h  v     2t  _     2  g     2  ]     2  N     2  1     2  %     2  F     2  ;     2  Q     2  C     2  d     2  9     3  w     3  ^     3  L     3(  @     34  7     3@  \     3L       3X       3d  )     3p       3|  H     3  f     3  "     3  J     3  >     3       3  c     3  Z     3  n     3  D     3  B     4   o     4  t     4  G     4$  s     40  #     4<  X     4H  O     4T  K     4`  *     4l  p     4x       4  !     4  =     4  $     4  3     4  u     4  |      @D  "a, @'  $+   `      -` `?-)  !-    /%    +   ` `?`5    +  a %@ #    @ F     K@ F#@        @  +   @ F   @ F   㿠  "#  "#p  "#t  " !  L@ F $@ F !  L@ F 0      "#  ""$  ""(  "#x  "!  "#  "#  㿐      @ F|'D /@ F|`      `  @ Fj,         ` @ F^   @ F_ &  @ F_` ` &` !  @ F_"@ F`  !  L <!  !D  @ FZ 7  @ FZ&!     $!!  !!  !h    @ FO  D     @      @ FH#     a' 
'c'' @ F?!  !!  !!   	 !@   W        @ G  O     !       @ 2  D     ?   @ E 
@ F  @ E?!  L p@ F?!  L t @ F?  !  L@ F | " ?`     !  L @ F   ? &?@ E?@ E  @ E?!  L @ E &?@  Y    &?㐘 ?@  ?    @   @ E     !  L@ E H@ E  v㐝㿠  !  "P" @ Eߒ   @ E   !  L@ Eڒ !  " @ EҒ e.'idx'
      fi
      # Remove the stat file ...
      rm $statfile 2> /dev/null
      exit 1
    fi
  fi

# If there were parser errors, report them to the status file, and stdout.
  echo "Parser done. \c" >> $statfile
  if [ $trouble -gt 0 ]
  then
    echo "Parser errors occurred!$moreinfo"  >> $statfile
    if [ "$save" = yes ]
    then
      echo "Continuing due to a -debug option" >> $statfile
    else
      echo "Continuing due to an onerror=go option" >> $statfile
    fi
    echo "Parser errors occurred!$moreinfo"
    if [ "$save" = yes ]
    then
      echo "Continuing due to a -debug option"
    else
      echo "Continuing due to an onerror=go option"
    fi
  else
    echo No parser errors. >> $statfile
  fi
fi


# Run the pass2 utility to create the <loids>, <index>, and <snb>
echo "Running $HELPTAGPASS2 to create the generated elements." >> $statfile
if [ "$background" = "no" ]
then
  echo "Running $HELPTAGPASS2 to create the generated elements."
fi

if [ \( "$compression" = "yes" \) -o \( "$decompression" = "yes" \) ]
then
  cflag="t"
  if [ "$compression" = "yes" ]
  then
    cflag="c$cflag"
  fi
  if [ "$decompression" = "yes" ]
  then
    cflag="d$cflag"
  fi
  if [ "$optimize" = "yes" ]
  then
    cflag="o$cflag"
  fi
  if [ "$cflag" != "" ]
  then
    cflag="-$cflag"
  fi
else
  if [ "$optimize" = "yes" ]
  then
    cflag="-cot"
    if [ "$save" = "yes" ]
    then
      cflag="-ot"
    fi
  else
    cflag="-ct"
    if [ "$save" = "yes" ]
    then
      cflag="-t"
    fi
  fi
fi

if [ "$background" = "no" ]
then
  $HELPTAGPASS2 $cflag $workfile.sdl
else
  $HELPTAGPASS2 $cflag $workfile.sdl 1> /dev/null 2>&1
fi
if [ $? -ne 0 ]
then
  echo "Error in run of $HELPTAGPASS2." >> $statfile
  echo "Error in run of $HELPTAGPASS2 -- exiting dthelptag."
  if [ "$save" != yes ]
  then
    $RM $workfile.'xrh'
    $RM $workfile.'snb'
    $RM $workfile.'idx'
  fi
  # Remove the stat file ...
  rm $statfile 2> /dev/null
  exit 1
fi

echo "$HELPTAGPASS2 complete." >> $statfile
if [ "$background" = "no" ]
then
 