generate_param: add a means to generate param_table_gen.c from the docs
[sfrench/samba-autobuild/.git] / script / clean-source-tree.sh
1 #!/bin/sh
2 #
3
4 N=`git clean -n | wc -l`
5 C=`git diff --stat HEAD | wc -l`
6
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
10
11         echo "git clean -n" >&2
12         git clean -n >&2
13
14         test x"$C" != x"0" && {
15                 echo "git diff -p --stat HEAD" >&2
16                 git diff -p --stat HEAD >&2
17         }
18
19         exit 1
20 }
21
22 test x"$C" != x"0" && {
23         echo "The tree has uncommitted changes!!! see stderr"
24         echo "The tree has uncommitted changes!!!" >&2
25
26         echo "git diff -p --stat HEAD" >&2
27         git diff -p --stat HEAD >&2
28
29         exit 1
30 }
31
32 echo "clean tree"
33 exit 0