scripts: fix distclean
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Oct 06 22:54:48 2010 +0200 (2010-10-06)
changeset 213798b51f471fbb
parent 2136 750cf0d26370
child 2138 2242d87c5404
scripts: fix distclean

Do not fail in case either one or both of target/ and
.build/ directories are missing.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
ct-ng.in
     1.1 --- a/ct-ng.in	Wed Oct 06 11:27:38 2010 +0200
     1.2 +++ b/ct-ng.in	Wed Oct 06 22:54:48 2010 +0200
     1.3 @@ -172,5 +172,6 @@
     1.4  	@$(ECHO) "  CLEAN .config"
     1.5  	$(SILENT)rm -f .config .config.* ..config*
     1.6  	@$(ECHO) "  CLEAN build dir"
     1.7 -	$(SILENT)chmod -R u+w targets .build
     1.8 +	$(SILENT)[ ! -d targets ] || chmod -R u+w targets
     1.9 +	$(SILENT)[ ! -d .build  ] || chmod -R u+w .build
    1.10  	$(SILENT)rm -rf targets .build