summaryrefslogtreecommitdiff
path: root/packaging/Caldera/OpenServer/Clean
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/Caldera/OpenServer/Clean')
-rwxr-xr-xpackaging/Caldera/OpenServer/Clean22
1 files changed, 22 insertions, 0 deletions
diff --git a/packaging/Caldera/OpenServer/Clean b/packaging/Caldera/OpenServer/Clean
new file mode 100755
index 0000000000..fe4eed2527
--- /dev/null
+++ b/packaging/Caldera/OpenServer/Clean
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# Cleanup after having configured, compiled, installed and packaged.
+# Careful - running this script attempts to restore this hierarchy to
+# freshly unpacked source
+#
+# Invoke as "./Clean -n" to get this script to tell you what it would do
+# without doing anything
+#
+
+V=
+[ "$1" = "-n" ] && V=echo
+
+[ -d dist ] && $V rm -rf dist
+[ -f ../../../source/Makefile ] && {
+ $V cd ../../../source
+ $V rm -f bin/locktest bin/masktest bin/smbsh bin/debug2html \
+ bin/locktest2 bin/smbfilter bin/smbtorture
+ $V make clean
+ $V make distclean
+ $V rm -f mout*
+}