aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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