ctdb: Change the ctdb_vfork_exec prototype to const char*const*
[samba4-gss.git] / script / clean-source-tree.sh
blob8d7f75921e887b40a865d3d5f01ceab0835e00a7
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