#! /bin/bash
# generates script doing what "make uninstall" would do
# first parameter: the name of the uninstallation script, defaulting to uninstall.sh
# second, optional parameter: the command to execute to uninstall, like "rpm -e armagetronad".

#set -x

UNINSTALL=$1
test x$UNINSTALL = x && UNINSTALL=uninstall

EXTERNAL_CMD=$2

test -z "`echo $UNINSTALL | grep '^/'`" && UNINSTALL=`pwd`/$UNINSTALL
echo -n "Generating uninstallation script" $UNINSTALL...

echo "done."
