fix release scripts to always git clean
authorSimo Sorce <idra@samba.org>
Wed, 17 Jun 2009 18:14:31 +0000 (14:14 -0400)
committerSimo Sorce <idra@samba.org>
Wed, 17 Jun 2009 18:18:03 +0000 (14:18 -0400)
This makes sure we do not include foreign object files or other
build byproducts by mistake.

lib/talloc/release-script.sh
lib/tdb/release-script.sh

index 7ec47b7ee198b20d8f4b78ee18c2151af260e74c..6b6c0e7aad0a58aa30f0d4132c498c56b01fc377 100755 (executable)
@@ -10,6 +10,9 @@ if [ ! -d "lib/talloc" ]; then
     exit 1
 fi
 
+git clean -f -x -d lib/talloc
+git clean -f -x -d lib/replace
+
 curbranch=`git-branch |grep "^*" | tr -d "* "`
 
 version=$1
index 95d4238657b1a4ab746a8bfe59fd856fb4a06db4..ddeb753b970be487c0e5dbaeebb6429210228df4 100755 (executable)
@@ -10,6 +10,9 @@ if [ ! -d "lib/tdb" ]; then
     exit 1
 fi
 
+git clean -f -x -d lib/tdb
+git clean -f -x -d lib/replace
+
 curbranch=`git-branch |grep "^*" | tr -d "* "`
 
 version=$1