Improve junk file removal in source tarball creation script.
authorNick Clifton <nickc@redhat.com>
Tue, 30 Jan 2018 17:48:24 +0000 (17:48 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 30 Jan 2018 17:48:24 +0000 (17:48 +0000)
* src-release.sh (do_proto_toplev): Add patterns for more junk files
to delete before creating the tarball.

ChangeLog
src-release.sh

index c4cb63785c7e7b53747f6b8cfc1cf1c0bae3c1a8..35a8c010b1e2c0a88d13e141f5b71b80a017b68c 100644 (file)
--- 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
index 3203a6af2be3cffad541cc689426ce7da6f173b2..7c27ecfcca3157746bbbab431d5058e94aebb111 100755 (executable)
@@ -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.