浏览代码

Remove backup-files from the TARGET_DIR.

Closes #823.

~ is commonly used as a suffix to editor backup files.
Remove these files, just as we remove CVS-directories and
.empty-files.

[Peter: tweaked to remove in same find invocation as .empty]
Signed-off-by: Anders Darander <ad@datarespons.se>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Anders Darander 15 年之前
父节点
当前提交
b9656e81a4
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      CHANGES
  2. 1 1
      Makefile

+ 1 - 0
CHANGES

@@ -24,6 +24,7 @@
 	#767: Bump iw package to 0.9.18
 	#773: [SECURITY] Update bind to 9.5.2-P1
 	#795: Minor edits to fix typos, grammar, spelling, usage in documen...
+	#823: Editor backup files (~) is copied from the target_skeleton
 
 2009.11, Released December 1st, 2009:
 

+ 1 - 1
Makefile

@@ -386,7 +386,7 @@ $(BUILD_DIR)/.root:
 		touch $(STAGING_DIR)/.fakeroot.00000; \
 	fi
 	-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 -o -name '*~' \) -print0 | xargs -0 rm -rf
 	touch $@
 
 $(TARGET_DIR): $(BUILD_DIR)/.root