s3-utils/net_rpc_printer.c: return on read error in net_copy_file()
[Samba/vl.git] / script / clean-source-tree.sh
blobd0107f6cd7516081657d4dd97a1e3612625f8648
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 uncommitted changes!!! see stderr"
9 echo "The tree has uncommitted changes!!!" >&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