# HG changeset patch # User "Yann E. MORIN" # Date 1286398488 -7200 # Node ID 98b51f471fbb50e7224bb6649a8ea53190135987 # Parent 750cf0d26370b5a508cf97f7980ccec7f53854f1 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" diff -r 750cf0d26370 -r 98b51f471fbb ct-ng.in --- a/ct-ng.in Wed Oct 06 11:27:38 2010 +0200 +++ b/ct-ng.in Wed Oct 06 22:54:48 2010 +0200 @@ -172,5 +172,6 @@ @$(ECHO) " CLEAN .config" $(SILENT)rm -f .config .config.* ..config* @$(ECHO) " CLEAN build dir" - $(SILENT)chmod -R u+w targets .build + $(SILENT)[ ! -d targets ] || chmod -R u+w targets + $(SILENT)[ ! -d .build ] || chmod -R u+w .build $(SILENT)rm -rf targets .build