2.30 tar.xz archive contains .rej files

Nick Clifton nickc@redhat.com
Mon Jan 29 13:46:00 GMT 2018

Hi Guys,

On 29/01/18 12:12, Maciej W. Rozycki wrote:
>  Would it help if the script or whatever you use for making a release 
> tarball removed unwanted files beforehand or simply ignored them? 

I have just added this patch to the src-release.sh scipt to remove
any remnants of failed patches from the sources before the tarball
is created.


2018-01-29  Nick Clifton  <nickc@redhat.com>

	* src-release.sh (do_proto_toplev): Strip patch remnant files from
	the sources before creating the tarball.

diff --git a/src-release.sh b/src-release.sh
index f7243970c9..3203a6af2b 100755
--- a/src-release.sh
+++ b/src-release.sh
@@ -77,6 +77,11 @@ do_proto_toplev()
+    echo "==> Cleaning sources."
+    find -name "*.orig" -exec rm {} \;
+    find -name "*.rej" -exec rm {} \;
     echo "==> Making $package-$ver/"
     # Take out texinfo from a few places.
     sed -e '/^all\.normal: /s/\all-texinfo //' \

More information about the Binutils mailing list