]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
Remove backup-files from the TARGET_DIR.
authorAnders Darander <ad@datarespons.se>
Wed, 23 Dec 2009 09:05:45 +0000 (10:05 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 23 Dec 2009 10:54:25 +0000 (11:54 +0100)
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>
CHANGES
Makefile

diff --git a/CHANGES b/CHANGES
index 20089ed3c3c3041bf17feab8a1d96c58b2da0265..6b6a6e84fed0695bf061d3cbdbc33d0144eb4e24 100644 (file)
--- a/CHANGES
+++ b/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:
 
index 051b661fe7fcbb47fd3c6b88ea7985d93608d777..5f711485357d6518873207ebc9c834c2adc82e44 100644 (file)
--- a/Makefile
+++ b/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