This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Improve junk file removal in source tarball creation script.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=52b2f30022323367b2cd727f402c9876bdc53b0d

commit 52b2f30022323367b2cd727f402c9876bdc53b0d
Author: Nick Clifton <nickc@redhat.com>
Date:   Tue Jan 30 17:48:24 2018 +0000

    Improve junk file removal in source tarball creation script.
    
    	* src-release.sh (do_proto_toplev): Add patterns for more junk files
    	to delete before creating the tarball.

Diff:
---
 ChangeLog      | 5 +++++
 src-release.sh | 3 +--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c4cb637..35a8c01 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-01-30  Nick Clifton  <nickc@redhat.com>
+
+	* src-release.sh (do_proto_toplev): Add patterns for more junk files
+	to delete before creating the tarball.
+
 2018-01-29  Nick Clifton  <nickc@redhat.com>
 
 	* src-release.sh (do_proto_toplev): Strip patch remnant files from
diff --git a/src-release.sh b/src-release.sh
index 3203a6a..7c27ecf 100755
--- a/src-release.sh
+++ b/src-release.sh
@@ -79,8 +79,7 @@ do_proto_toplev()
     support_files=$4
 
     echo "==> Cleaning sources."
-    find -name "*.orig" -exec rm {} \;
-    find -name "*.rej" -exec rm {} \;
+    find \( -name "*.orig" -o  -name "*.rej" -o -name "*~" -o -name ".#*" -o -name "*~$bkpat" \) -exec rm {} \;
     
     echo "==> Making $package-$ver/"
     # Take out texinfo from a few places.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]