From: Nick Clifton Date: Tue, 30 Jan 2018 17:48:24 +0000 (+0000) Subject: Improve junk file removal in source tarball creation script. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52b2f30022323367b2cd727f402c9876bdc53b0d;p=binutils-gdb.git 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 --git a/ChangeLog b/ChangeLog index c4cb63785c7..35a8c010b1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-01-30 Nick Clifton + + * src-release.sh (do_proto_toplev): Add patterns for more junk files + to delete before creating the tarball. + 2018-01-29 Nick Clifton * src-release.sh (do_proto_toplev): Strip patch remnant files from diff --git a/src-release.sh b/src-release.sh index 3203a6af2be..7c27ecfcca3 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.