#!/bin/sh
# Uninstall st — remove command trampolines and bundle directory
dir=`dirname "$0"`
case "$dir" in
    /*) ;;
    *)  dir="`pwd`/$dir" ;;
esac
dir=`cd "$dir" && pwd`
bindir=`dirname "$dir"`/bin
echo "Removing st commands from $bindir"
rm -f "$bindir/bunzip2" && echo "  bunzip2"
rm -f "$bindir/bzcat" && echo "  bzcat"
rm -f "$bindir/bzcmp" && echo "  bzcmp"
rm -f "$bindir/bzdiff" && echo "  bzdiff"
rm -f "$bindir/bzegrep" && echo "  bzegrep"
rm -f "$bindir/bzfgrep" && echo "  bzfgrep"
rm -f "$bindir/bzgrep" && echo "  bzgrep"
rm -f "$bindir/bzip2" && echo "  bzip2"
rm -f "$bindir/bzip2recover" && echo "  bzip2recover"
rm -f "$bindir/bzless" && echo "  bzless"
rm -f "$bindir/bzmore" && echo "  bzmore"
rm -f "$bindir/envsubst" && echo "  envsubst"
rm -f "$bindir/fc-cache" && echo "  fc-cache"
rm -f "$bindir/fc-cache-32" && echo "  fc-cache-32"
rm -f "$bindir/fc-cat" && echo "  fc-cat"
rm -f "$bindir/fc-conflist" && echo "  fc-conflist"
rm -f "$bindir/fc-list" && echo "  fc-list"
rm -f "$bindir/fc-match" && echo "  fc-match"
rm -f "$bindir/fc-pattern" && echo "  fc-pattern"
rm -f "$bindir/fc-query" && echo "  fc-query"
rm -f "$bindir/fc-scan" && echo "  fc-scan"
rm -f "$bindir/fc-validate" && echo "  fc-validate"
rm -f "$bindir/gettext" && echo "  gettext"
rm -f "$bindir/gettext.sh" && echo "  gettext.sh"
rm -f "$bindir/msgattrib" && echo "  msgattrib"
rm -f "$bindir/msgcat" && echo "  msgcat"
rm -f "$bindir/msgcmp" && echo "  msgcmp"
rm -f "$bindir/msgcomm" && echo "  msgcomm"
rm -f "$bindir/msgconv" && echo "  msgconv"
rm -f "$bindir/msgen" && echo "  msgen"
rm -f "$bindir/msgexec" && echo "  msgexec"
rm -f "$bindir/msgfilter" && echo "  msgfilter"
rm -f "$bindir/msgfmt" && echo "  msgfmt"
rm -f "$bindir/msggrep" && echo "  msggrep"
rm -f "$bindir/msginit" && echo "  msginit"
rm -f "$bindir/msgmerge" && echo "  msgmerge"
rm -f "$bindir/msgunfmt" && echo "  msgunfmt"
rm -f "$bindir/msguniq" && echo "  msguniq"
rm -f "$bindir/ngettext" && echo "  ngettext"
rm -f "$bindir/pngfix" && echo "  pngfix"
rm -f "$bindir/recode-sr-latin" && echo "  recode-sr-latin"
rm -f "$bindir/st" && echo "  st"
rm -f "$bindir/xgettext" && echo "  xgettext"
rm -f "$bindir/xmlwf" && echo "  xmlwf"
echo ""
echo "To remove the bundle directory, run:"
echo "  rm -rf $dir"
