summaryrefslogtreecommitdiff
path: root/source4/script/uninstalltorture.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source4/script/uninstalltorture.sh')
-rwxr-xr-xsource4/script/uninstalltorture.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/source4/script/uninstalltorture.sh b/source4/script/uninstalltorture.sh
new file mode 100755
index 0000000000..0c6e4ec991
--- /dev/null
+++ b/source4/script/uninstalltorture.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+TORTUREDIR=$1
+shift
+shift
+
+for p in $*; do
+ p2=`dirname $p`
+ base=`basename $p`
+ DESTDIR=$TORTUREDIR/`basename $p2`
+ echo Removing $DESTDIR/$base
+ rm -f $p $DESTDIR/
+done
+
+exit 0