sub getSetInfo { $II2LOGLEVEL = $ENV{"II2LOGLEVEL"}; my %set = (); @allsetinfo = `"${II2RESOURCES}/doalerter" -s "${II2DOSERVER}" -V -t GetSelectorSets`; if (not defined @allsetinfo) { warn "### ${PROGNAME}: Unable to get selector set from package\n"; exit( 1); } # warn @allsetinfo; $numberofsets = scalar( @allsetinfo) / 7; if ($numberofsets >= 1) { for (my $i = 0; $i < $numberofsets; $i++) { my $id = $allsetinfo[7*$i]; my $name = $allsetinfo[7*$i+1]; my $comment = $allsetinfo[7*$i+2]; my $selected = $allsetinfo[7*$i+3]; my $configured = $allsetinfo[7*$i+4]; my $installed = $allsetinfo[7*$i+5]; my $available = $allsetinfo[7*$i+6]; chomp( $id); chomp( $name); chomp( $comment); chomp( $selected); chomp( $configured); chomp( $installed); chomp( $available); ${set}{$id}{'name'} = $name; ${set}{$id}{'comment'} = $comment; ${set}{$id}{'selected'} = $selected; ${set}{$id}{'configured'} = $configured; ${set}{$id}{'installed'} = $installed; ${set}{$id}{'available'} = $available; if (${II2LOGLEVEL} > 3) { my $msg = "### ${PROGNAME}: Set \"$id\": \"$name\" is"; $msg .= ($available eq 'YES' ? ' available,' : ' not available,'); $msg .= ($selected eq 'YES' ? ' selected,' : ' not selected,'); $msg .= ($installed eq 'YES' ? ' installed and' : ' uninstalled and'); $msg .= ($configured eq 'YES' ? ' configured.' : ' unconfigured.'); $msg .= "\n"; warn $msg; } if (${II2LOGLEVEL} > 4) { my $msg = "### ${PROGNAME}: Set \"$id\" description: \"$comment\"\n"; warn $msg; } } } else { warn "### ${PROGNAME}: Empty selector set received from package:\n@allsetinfo\n"; exit( 1); } return %set; } sub ipkgwarn { my $msg = shift; warn "### ${PROGNAME}: ${msg}"; my $doresult = `"${II2RESOURCES}/doalerter" -s "${II2DOSERVER}" -V -t Alert -T "Warning/Error." -I "${msg}" -1 "Accept"`; chomp( $doresult); return $doresult; } sub ipkgsystem { my $cmd = shift; if (${II2LOGLEVEL} > 3) { warn "### ${PROGNAME}. Executing: \"${cmd}\"\n"; } return system( ${cmd}); } sub checkinstallocation { if ("${II2INSTALLDIR}" ne "/usr/local/teTeX") { my $doresult = `"${II2RESOURCES}/doalerter" -s "${II2DOSERVER}" -V -t Alert -T "Nondefault location" -I "The i-Package has a nonstandard install location.\n\nIf the nonstandard location is used exclusively for this i-Package, go ahead.\n\nIf not (e.g. if you install in a directory that is already used) you may overwrite or delete things that are not part of this i-Package. I suggest using a dedicated directory as install location.\n\nClick Proceed to go ahead anyway." -1 "Proceed" -2 "Stop"`; chomp( $doresult); if (($? >> 8) == 0) { warn "### ${PROGNAME}: Proceeding with nonstandard location \"${II2INSTALLDIR}\".\n"; return 1; } else { warn "### ${PROGNAME}: Stopping because of nonstandard location \"${II2INSTALLDIR}\".\n"; return 0; } } else { if (${II2LOGLEVEL} > 3) { print "### ${PROGNAME}: Using standard location \"${II2INSTALLDIR}\".\n"; } return 1; } } sub removetexrest { # In case TeX is installed in a directory where there is already other # stuff, a rm -rf of II2INSTALLDIR would lead to data loss: print "### ${PROGNAME}: Removing remaining TeX stuff from your system. Please wait...\n"; ipkgsystem( "rmdir \"${II2INSTALLDIR}\" >/dev/null || ls \"${II2INSTALLDIR}\" 2>&1"); ipkgsystem( "rm -rf /var/tmp/texfonts >/dev/null 2>&1"); ipkgsystem( "rm -f \"/Library/teTeX\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"/Library/TeX\" >/dev/null 2>&1"); } sub removetexlocal { print "### ${PROGNAME}: Removing TeX Local Settings and additions. Please wait...\n"; ipkgsystem( "rm -rf \"${II2INSTALLDIR}\"/share/texmf.local >/dev/null 2>&1"); ipkgsystem( "rmdir \"${II2INSTALLDIR}/share\" >/dev/null || ls \"${II2INSTALLDIR}/share\" 2>&1"); } sub removetexfoundation { &removetetexfoundation(); &removegwtexfoundation(); } sub removetetexfoundation { print "### ${PROGNAME}: Removing teTeX Foundation. Please wait...\n"; ipkgsystem( "rm -rf \"${II2INSTALLDIR}\"/share/texmf.tetex >/dev/null 2>&1"); ipkgsystem( "rmdir \"${II2INSTALLDIR}/share\" >/dev/null || ls \"${II2INSTALLDIR}/share\" 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/.texmf* >/dev/null 2>&1"); } sub removetetexfoundationdocs { print "### ${PROGNAME}: Removing teTeX Foundation docs. Please wait...\n"; ipkgsystem( "rm -rf \"${II2INSTALLDIR}\"/share/texmf.tetex/doc >/dev/null 2>&1"); ipkgsystem( "rmdir \"${II2INSTALLDIR}/share/texmf.tetex\" >/dev/null || ls \"${II2INSTALLDIR}/share/texmf.tetex\" 2>&1"); ipkgsystem( "rmdir \"${II2INSTALLDIR}/share\" >/dev/null || ls \"${II2INSTALLDIR}/share\" 2>&1"); } sub removegwtexfoundation { print "### ${PROGNAME}: Removing gwTeX Foundation. Please wait...\n"; ipkgsystem( "rm -rf \"${II2INSTALLDIR}\"/share/texmf.gwtex >/dev/null 2>&1"); ipkgsystem( "rm -rf \"${II2INSTALLDIR}\"/share/texmf.macosx >/dev/null 2>&1"); ipkgsystem( "rmdir \"${II2INSTALLDIR}/share\" >/dev/null || ls \"${II2INSTALLDIR}/share\" 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/README.howtexfindsfiles >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/README.texmf.gwtex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/.texmf* >/dev/null 2>&1"); } sub removetexprograms { &removetexprogramessentials() &removetexprogramextras() } sub removetexprogramessentials { print "### ${PROGNAME}: Removing TeX Program essentials. Please wait...\n"; ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/T1Wrap >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/a2ping >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/afm2pl >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/afm2tfm >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/aleph >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/allcm >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/allec >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/allneeded >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/altpdfaleph >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/altpdfamstex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/altpdfcont-en >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/altpdfcont-nl >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/altpdfetex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/altpdflambda >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/altpdflatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/altpdfomega >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/altpdftex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/amstex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/bbox >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/bg5+latex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/bg5+pdflatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/bg5conv >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/bg5latex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/bg5pdflatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/bibtex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/bibtex8 >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/cef5conv >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/cef5latex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/cef5pdflatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/cefconv >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/ceflatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/cefpdflatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/cefsconv >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/cefslatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/cefspdflatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/cfftot1 >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/cslatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/csplain >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/ctangle >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/ctie >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/cweave >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/detex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/devnag >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/disdvi >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dmp >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dt2dv >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dv2dt >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvi2fax >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvi2tty >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvibook >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dviconcat >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvicopy >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvidvi >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvigif >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvihp >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvilj >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvilj2p >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvilj4 >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvilj4l >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvilj6 >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvipdfm >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvipdfmx >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvipdft >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvipng >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvips >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvired >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dviselect >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvitodvi >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvitomp >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/dvitype >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/e2pall >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/ebb >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/eplain >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/epsffit >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/epstopdf >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/etex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/extconv >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/extractres >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/fdf2tan >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/fdf2tex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/fixdlsrps >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/fixfmps >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/fixmacps >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/fixpsditps >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/fixpspps >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/fixscribeps >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/fixtpps >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/fixwfwps >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/fixwpps >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/fixwwps >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/fmtutil >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/fmtutil-sys >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/fontinst >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/gbklatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/gbkpdflatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/getafm >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/gftodvi >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/gftopk >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/gftype >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/giftopng >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/gsftopk >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/hbf2gf >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/ht >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/htcontext >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/htlatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/htmex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/httex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/httexexec >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/httexi >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/includeres >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/info >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/infokey >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/install-info >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/jadetex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/kpseaccess >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/kpsepath >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/kpsereadlink >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/kpsestat >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/kpsetool >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/kpsewhere >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/kpsewhich >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/kpsexpand >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/lacheck >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/lambda >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/lamed >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/latex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mag >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/makeindex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/makeinfo >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/makempx >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/makempy >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mf >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mf-nowin >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mft >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mk4ht >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mkindex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mkocp >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mkofm >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mktexfmt >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mktexlsr >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mktexmf >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mktexpk >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mktextfm >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mllatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mltex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mmafm >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mmpfb >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mpost >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mpto >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/mptopdf >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/musixflx >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/newer >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/odvicopy >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/odvips >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/odvitype >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/ofm2opl >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/omega >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/omfonts >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/opl2ofm >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/otangle >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/otfinfo >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/otftotfm >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/otp2ocp >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/outocp >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/ovf2ovp >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/ovp2ovf >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/oxdvi >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/patgen >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pdfcrop >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pdfcslatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pdfcsplain >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pdfetex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pdfjadetex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pdflatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pdfmex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pdfplatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pdftex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pdftexinfo >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pdfthumb >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pdfxmltex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pdfxtex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/perltex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pfb2pfa >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/physe >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/phyzzx >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pk2bm >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pkfix >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pktogf >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pktype >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/platex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pltotf >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pooltype >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/ppower4 >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/ps2eps >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/ps2frag >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/ps2pk >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/ps4pdf >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/psbook >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pslatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/psmerge >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/psnup >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/psresize >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/psselect >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/pstops >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/rubibtex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/rumakeindex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/showchar >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/simpdftex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/sjisconv >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/sjislatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/sjispdflatex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/t1ascii >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/t1asm >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/t1binary >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/t1disasm >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/t1dotlessj >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/t1lint >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/t1mac >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/t1reencode >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/t1testpage >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/t1unmac >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/t4ht >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/tangle >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/tcdialog >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/tex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/tex4ht >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texconfig >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texconfig-dialog >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texconfig-sys >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texdoc >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texdoctk >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texexec >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texfind >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texfont >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texhash >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texi2dvi >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texi2html >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texi2pdf >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texindex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texinfo >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texlinks >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texshow >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texsis >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/texutil >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/tftopl >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/thumbpdf >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/tie >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/ttf2afm >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/ttf2pk >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/ttf2tfm >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/uniqleaf >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/updmap >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/updmap-sys >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/utf8mex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/vftovp >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/vptovf >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/weave >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/xdvi >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/xdvi-xaw.bin >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/xdvizilla >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*/xmltex >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/*-apple-darwin-current >/dev/null"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/bin/highesttexbin.pl >/dev/null"); ipkgsystem( "rmdir \"${II2INSTALLDIR}\"/bin/*-apple-darwin* >/dev/null || ls \"${II2INSTALLDIR}\"/bin/*-apple-darwin* 2>&1"); ipkgsystem( "rmdir \"${II2INSTALLDIR}/bin\" >/dev/null || ls \"${II2INSTALLDIR}/bin\" 2>&1"); ipkgsystem( "rm -rf \"${II2INSTALLDIR}\"/share/texmf >/dev/null 2>&1"); ipkgsystem( "rm -rf \"${II2INSTALLDIR}\"/share/texmf-var >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/afm2pl.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/afm2tfm.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/allcm.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/allec.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/allneeded.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/amstex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/bbox.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/bibtex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/cfftot1.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/ctangle.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/ctie.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/cweave.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/cweb.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/detex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dmp.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dt2dv.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dv2dt.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvi2fax.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvi2tty.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvibook.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dviconcat.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvicopy.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvidvi.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvihp.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvilj.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvilj2p.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvilj4.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvilj4l.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvilj6.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvipdfm.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvipdft.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvipng.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvips.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvired.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dviselect.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvitodvi.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvitomp.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/dvitype.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/e2pall.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/ebb.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/eplain.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/epsffit.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/epstopdf.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/etex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/extractres.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/fdf2tex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/fixdlsrps.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/fixfmps.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/fixmacps.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/fixpsditps.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/fixpspps.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/fixscribeps.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/fixtpps.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/fixwfwps.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/fixwpps.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/fixwwps.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/fmtutil-sys.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/fmtutil.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/fontinst.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/getafm.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/gftodvi.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/gftopk.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/gftype.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/gsftopk.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/hbf2gf.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/includeres.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/info.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/infokey.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/install-info.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/kpseaccess.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/kpsepath.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/kpsereadlink.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/kpsestat.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/kpsetool.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/kpsewhere.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/kpsewhich.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/kpsexpand.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/lacheck.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/lambda.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/latex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/mag.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/makeindex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/makeinfo.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/makempx.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/makempy.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/mf-nowin.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/mf.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/mft.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/mkindex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/mkocp.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/mkofm.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/mktexfmt.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/mktexlsr.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/mktexmf.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/mktexpk.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/mktextfm.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/mmafm.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/mmpfb.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/mpost.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/mpto.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/newer.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/odvicopy.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/odvips.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/odvitype.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/ofm2opl.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/omega.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/opl2ofm.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/otfinfo.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/otftotfm.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/otp2ocp.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/outocp.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/ovf2ovp.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/ovp2ovf.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/oxdvi.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/patgen.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/pdfetex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/pdflatex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/pdftex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/pdfxtex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/pfb2pfa.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/pk2bm.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/pktogf.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/pktype.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/pltotf.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/pooltype.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/ps2eps.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/ps2frag.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/ps2pk.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/psbook.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/pslatex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/psmerge.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/psnup.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/psresize.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/psselect.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/pstops.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/rubibtex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/rumakeindex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/t1ascii.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/t1asm.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/t1binary.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/t1disasm.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/t1dotlessj.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/t1lint.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/t1mac.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/t1reencode.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/t1testpage.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/t1unmac.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/tangle.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/tcdialog.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/tex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/texconfig-sys.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/texconfig.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/texdoc.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/texdoctk.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/texexec.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/texfind.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/texfont.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/texhash.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/texi2dvi.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/texi2html.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/texi2pdf.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/texindex.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/texlinks.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/texshow.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/texutil.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/tftopl.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/thumbpdf.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/tie.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/ttf2afm.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/ttf2pk.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/ttf2tfm.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/updmap-sys.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/updmap.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/vftovp.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/vptovf.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/weave.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/xdvi.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man1/xdvizilla.1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man5/fmtutil.cnf.5\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man5/info.5\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man5/texinfo.5\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man5/updmap.cfg.5\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man8/fmtutil.8\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man8/mktexfmt.8\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/man/man8/texlinks.8\" >/dev/null 2>&1"); ipkgsystem( "rmdir \"${II2INSTALLDIR}/man/man1\" >/dev/null || ls \"${II2INSTALLDIR}/man/man1\""); ipkgsystem( "rmdir \"${II2INSTALLDIR}/man/man5\" >/dev/null || ls \"${II2INSTALLDIR}/man/man5\""); ipkgsystem( "rmdir \"${II2INSTALLDIR}/man/man8\" >/dev/null || ls \"${II2INSTALLDIR}/man/man8\""); ipkgsystem( "rmdir \"${II2INSTALLDIR}/man\" >/dev/null || ls \"${II2INSTALLDIR}/man\""); ipkgsystem( "rm -rf \"${II2INSTALLDIR}/texmf\" >/dev/null 2>&1"); ipkgsystem( "rm -rf \"${II2INSTALLDIR}/share/texmf\" >/dev/null 2>&1"); ipkgsystem( "rm -rf \"${II2INSTALLDIR}/share/lcdf-typetools/\" >/dev/null 2>&1"); ipkgsystem( "rm -rf \"${II2INSTALLDIR}/share/texi2html/\" >/dev/null 2>&1"); ipkgsystem( "rm -rf \"${II2INSTALLDIR}/share/texinfo/\" >/dev/null 2>&1"); ipkgsystem( "rmdir \"${II2INSTALLDIR}/share\" >/dev/null || ls \"${II2INSTALLDIR}/share\""); ipkgsystem( "rm -rf \"${II2INSTALLDIR}/ppower4\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/.*texbinaries* >/dev/null 2>&1"); } sub removetexprogramextras { print "### ${PROGNAME}: Removing TeX Program developer extras. Please wait...\n"; ipkgsystem( "rm -rf \"${II2INSTALLDIR}/include/kpathsea\" >/dev/null 2>&1"); ipkgsystem( "rmdir \"${II2INSTALLDIR}/include\" >/dev/null || ls \"${II2INSTALLDIR}/include\""); ipkgsystem( "rm -f \"${II2INSTALLDIR}/info/dir\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/info/dvips.info\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/info/info-stnd.info\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/info/info.info\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/info/kpathsea.info\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/info/latex.info\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/info/texi2html.info\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/info/texi2html.info-1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/info/texi2html.info-2\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/info/texi2html.info-3\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/info/texinfo\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/info/texinfo-1\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/info/texinfo-2\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/info/texinfo-3\" >/dev/null 2>&1"); ipkgsystem( "rm -f \"${II2INSTALLDIR}/info/web2c.info\" >/dev/null 2>&1"); ipkgsystem( "rm -rf \"${II2INSTALLDIR}/info\" >/dev/null"); ipkgsystem( "rm -f \"${II2INSTALLDIR}\"/lib/*kpathsea* >/dev/null 2>&1"); ipkgsystem( "rmdir \"${II2INSTALLDIR}/lib\" >/dev/null || ls \"${II2INSTALLDIR}/lib\""); } sub setHomeTeXUse { my $hometexuse = shift; my $texmfcnf = "${II2INSTALLDIR}/texmf.cnf"; open( TEXMFCNF, "<${texmfcnf}") or die "### ${PROGNAME}: Cannot open $texmfcnf for reading}\n"; my @texmfcnfarray = ; close TEXMFCNF; # print "\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n"; # print @texmfcnfarray; # print "\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n"; open( TEXMFCNF, ">${texmfcnf}") or die "### ${PROGNAME}: Cannot open $texmfcnf for writing}\n"; foreach my $line (@texmfcnfarray) { if ($hometexuse) { $line =~ s/^\s*GWTEXVAR\s*=.*/GWTEXVAR=\$HOMETEXMF/; } else { $line =~ s/^\s*GWTEXVAR\s*=.*/GWTEXVAR=\$VARTEXMF/; } warn $line; print TEXMFCNF $line; } close TEXMFCNF; } 1;