This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: 2.30 tar.xz archive contains .rej files
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.
Cheers
Nick
./ChangeLog
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()
ver=$2
tool=$3
support_files=$4
+
+ 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 //' \