if [ -z "$PKG_INSTALL_ROOT" ]; then BASE=$CLIENT_BASEDIR else BASE=${PKG_INSTALL_ROOT}$CLIENT_BASEDIR fi PATH=${PATH}:/usr/sfw/bin:/sbin:/bin:/usr/bin:/usr/local/bin export PATH INSTINFO=`which install-info | cut -f1 -d\ ` if [ -w ${BASE}/share/info/dir ]; then if [ -z "$INSTINFO" -o "$INSTINFO" = "no" ]; then echo " " echo "WARNING: Unable to find install-info for removing info files" echo " from ${BASE}/share/info/dir. Use the following commands" echo " to do that manually: " echo " " INSTINFO='echo' fi echo "install-info --delete ${BASE}/share/info/dvips.info.gz --dir-file=${BASE}/share/info/dir" $INSTINFO --quiet --delete ${BASE}/share/info/dvips.info.gz --dir-file=${BASE}/share/info/dir echo "install-info --delete ${BASE}/share/info/kpathsea.info.gz --dir-file=${BASE}/share/info/dir" $INSTINFO --quiet --delete ${BASE}/share/info/kpathsea.info.gz --dir-file=${BASE}/share/info/dir echo "install-info --delete ${BASE}/share/info/latex.info.gz --dir-file=${BASE}/share/info/dir" $INSTINFO --quiet --delete ${BASE}/share/info/latex.info.gz --dir-file=${BASE}/share/info/dir echo "install-info --delete ${BASE}/share/info/web2c.info.gz --dir-file=${BASE}/share/info/dir" $INSTINFO --quiet --delete ${BASE}/share/info/web2c.info.gz --dir-file=${BASE}/share/info/dir fi exit 0 if [ -d "$PKG_INSTALL_ROOT/$CLIENT_BASEDIR/share/texmf" ]; then echo " teTeX configuration files in $CLIENT_BASEDIR/share/texmf were not removed! In case you do not need them anymore, please remove them manually." MISC="$CLIENT_BASEDIR/share/texmf-var" [ -d "$PKG_INSTALL_ROOT/$CLIENT_BASEDIR/share/texmf-local" ] && \ MISC="$MISC, $CLIENT_BASEDIR/share/texmf-local" [ -d "$PKG_INSTALL_ROOT/$CLIENT_BASEDIR/share/texmf-dist" ] && \ MISC="$MISC, $CLIENT_BASEDIR/share/texmf-dist" [ -d "$PKG_INSTALL_ROOT/var/tmp/texfonts" ] && \ MISC="$MISC, /var/tmp/texfonts" echo " Furthermore, you may delete $MISC as well. " fi if [ "$CLIENT_BASEDIR" = "/usr" -o "$CLIENT_BASEDIR" = "/usr/local" ]; then exit 0 fi LIBS="" for l in lib ; do _TMP=`crle | awk '/Default Library Path/ { print ":" $5 ":" }' \ | egrep ":$CLIENT_BASEDIR/$l"` if [ -n "$_TMP" ]; then LIBS="$LIBS \n$_TMP" fi done if [ -n "$LIBS" ]; then echo " " echo "NOTE: The following library path[s] are still listed in the systems" echo " default library search path (You may remove it using the crle" echo " tool in if they are not required anymore):" echo " " echo "$LIBS" echo " " fi exit 0