SVN: toys/tools/cleanbuild/cleanbuild

pawelz pawelz at pld-linux.org
Sat Feb 27 20:23:18 CET 2010


Author: pawelz
Date: Sat Feb 27 20:23:18 2010
New Revision: 11205

Modified:
   toys/tools/cleanbuild/cleanbuild
Log:
- unified use of $FORCE variable
- enable debug in build_remove_root()


Modified: toys/tools/cleanbuild/cleanbuild
==============================================================================
--- toys/tools/cleanbuild/cleanbuild	(original)
+++ toys/tools/cleanbuild/cleanbuild	Sat Feb 27 20:23:18 2010
@@ -40,6 +40,7 @@
 BUILD=false
 INSTALL=false
 CLEANAFTER=false
+FORCE=false
 
 case "$0" in
 	*clean)
@@ -234,7 +235,8 @@
 
 build_remove_root()
 {
-	if [ "$FORCE" ]; then
+	$NODEBUG || set -x
+	if $FORCE; then
 		# safety checks.
 		[ "$CHDIR" ] || exit 1
 		[ -d "$CHDIR" ] || exit 1


More information about the pld-cvs-commit mailing list