summaryrefslogtreecommitdiff
path: root/packaging/Caldera/OpenServer/Clean
blob: fe4eed252708e29c01320b7d8e7d5f2ed3bb0488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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*
}