source: vendor/3.6.23/script/clean-source-tree.sh

Last change on this file was 740, checked in by Silvan Scherrer, 13 years ago

Samba Server: update vendor to 3.6.0

File size: 614 bytes
Line 
1#!/bin/sh
2#
3
4N=`git clean -n | wc -l`
5C=`git diff --stat HEAD | wc -l`
6
7test x"$N" != x"0" && {
8 echo "The tree has uncommitted changes!!! see stderr"
9 echo "The tree has uncommitted changes!!!" >&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
22test 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
32echo "clean tree"
33exit 0
Note: See TracBrowser for help on using the repository browser.