This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PR29, Coreutils POSIX2_VERSION as 200112L
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 17 Oct 2019 16:36:31 +1030
- Subject: 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".
diff --git a/src-release.sh b/src-release.sh
index 90d556896c..61d8c8b452 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
--
Alan Modra
Australia Development Lab, IBM