summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2018-01-29 13:19:02 +0000
committerNick Clifton <nickc@redhat.com>2018-01-29 13:21:40 +0000
commitb431b4ea88c8cc1b75edc4aeaa592942a905c18f (patch)
treed3dfc0f0393f7c17a8850539c1cb0deff0029603
parent98d72909f8f216fb9fc4d7c2c8e48dbe2823cd0b (diff)
downloadbinutils-gdb-b431b4ea88c8cc1b75edc4aeaa592942a905c18f.tar.gz
Prevent patch remnants from being included in release tarballs.
* src-release.sh (do_proto_toplev): Strip patch remnant files from the sources before creating the tarball.
-rw-r--r--ChangeLog5
-rwxr-xr-xsrc-release.sh5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7db5d822302..c4cb63785c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2018-01-13 Nick Clifton <nickc@redhat.com>
* src-release.sh: Update copyright notice. Change reference to devo
diff --git a/src-release.sh b/src-release.sh
index f7243970c95..3203a6af2be 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 //' \