aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-10-17 16:25:38 +1030
committerAlan Modra <amodra@gmail.com>2019-10-17 16:34:02 +1030
commita315e14713de0a712382b3159507c16a0975a8d1 (patch)
treec54a3faff02bb113aa2d2b0d5e68c475f83597c4
parentbefcd486f467deb3a6a7576dc03bd40db3939ab6 (diff)
downloadbinutils-a315e14713de0a712382b3159507c16a0975a8d1.zip
binutils-a315e14713de0a712382b3159507c16a0975a8d1.tar.gz
binutils-a315e14713de0a712382b3159507c16a0975a8d1.tar.bz2
PR29, Coreutils POSIX2_VERSION as 200112L
As of today we have just the following oddities left ./gnulib/update-gnulib.sh:ver=`autoconf --version 2>&1 | head -1 | sed 's/.*) //'` ./gnulib/update-gnulib.sh:ver=`automake --version 2>&1 | head -1 | sed 's/.*) //'` ./gnulib/update-gnulib.sh:ver=`aclocal --version 2>&1 | grep -v "called too early to check prototype" | head -1 | sed 's/.*) //'` ./src-release.sh: head -1 $tool/version.in ./contrib/dg-extract-results.sh:tail -2 $FIRST_SUM | $GREP '^#' > /dev/null || tail -2 $FIRST_SUM gnulib and contrib (from gcc) are outside of binutils control, so with this patch I'm going to declare this 15 year old bug fixed. PR 29 * src-release.sh (getver): Replace "head -1" with "head -n 1".
-rw-r--r--ChangeLog5
-rwxr-xr-xsrc-release.sh2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 14d2663..1962d7e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-10-17 Alan Modra <amodra@gmail.com>
+
+ PR 29
+ * src-release.sh (getver): Replace "head -1" with "head -n 1".
+
2019-07-30 Nick Alcock <nick.alcock@oracle.com>
* Makefile.def (host_modules): libctf is no longer no_install.
diff --git a/src-release.sh b/src-release.sh
index 90d5568..61d8c8b 100755
--- a/src-release.sh
+++ b/src-release.sh
@@ -66,7 +66,7 @@ getver()
cat VER.tmp | grep 'version\[\]' | sed 's/.*"\([^"]*\)".*/\1/' | sed 's/-git$//'
rm -f VER.tmp
elif test -f $tool/version.in; then
- head -1 $tool/version.in
+ head -n 1 $tool/version.in
else
echo VERSION
fi