tdb: rework cleanup logic in tdb_runtime_check_for_robust_mutexes()
[Samba.git] / script / clean-source-tree.sh
blobea9e6e333ba302f5156021698ce9ce6a50c3838f
1 #!/bin/sh
4 N=`git clean -n | wc -l`
5 C=`git diff --stat HEAD | wc -l`
7 test x"$N" != x"0" && {
8 echo "The tree has $N new uncommitted files!!! see stderr"
9 echo "The tree has $N new uncommitted files!!!" >&2
11 echo "git clean -n" >&2
12 git clean -n >&2
14 test x"$C" != x"0" && {
15 echo "git diff -p --stat HEAD" >&2
16 git diff -p --stat HEAD >&2
19 exit 1
22 test x"$C" != x"0" && {
23 echo "The tree has uncommitted changes!!! see stderr"
24 echo "The tree has uncommitted changes!!!" >&2
26 echo "git diff -p --stat HEAD" >&2
27 git diff -p --stat HEAD >&2
29 exit 1
32 echo "clean tree"
33 exit 0