浏览代码

Makefile: Ensure CVS directories are removed from target fs.

The find command syntax is incorrect when deleting CVS and .svn directories
from the target filesystem, which prevent CVS directories from being
deleted.

It's useful to delete these dirs because users of buildroot often import
buildroot into CVS or Subversion.

Signed-off-by: Will Newton <will.newton@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Will Newton 16 年之前
父节点
当前提交
fc3eb18b70
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -337,7 +337,7 @@ $(PROJECT_BUILD_DIR)/.root:
 		fi; \
 		fi; \
 		touch $(STAGING_DIR)/.fakeroot.00000; \
 		touch $(STAGING_DIR)/.fakeroot.00000; \
 	fi
 	fi
-	-find $(TARGET_DIR) -type d -name CVS -o -name .svn -print0 | xargs -0 rm -rf
+	-find $(TARGET_DIR) -type d -name CVS -print0 -o -name .svn -print0 | xargs -0 rm -rf
 	-find $(TARGET_DIR) -type f -name .empty -print0 | xargs -0 rm -rf
 	-find $(TARGET_DIR) -type f -name .empty -print0 | xargs -0 rm -rf
 	touch $@
 	touch $@