build: Make autogen.sh more POSIX friendly (next try)
authorWerner Koch <wk@gnupg.org>
Thu, 12 Jan 2017 10:22:37 +0000 (11:22 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 12 Jan 2017 10:22:37 +0000 (11:22 +0100)
* autogen.sh: Fix dd count to 5.
--

Fixes-commit: 3c00b52f7cb0fbd756c0bbe5134b8f2d69c60dd1
Signed-off-by: Werner Koch <wk@gnupg.org>
autogen.sh

index f2af5a7..3ef1ea0 100755 (executable)
@@ -225,7 +225,7 @@ if [ "$myhost" = "find-version" ]; then
       fi
       [ -n "$tmp" ] && beta=yes
       rev=$(git rev-parse --short HEAD | tr -d '\n\r')
-      rvd=$((0x$(echo ${rev} | dd bs=1 count=2 2>/dev/null)))
+      rvd=$((0x$(echo ${rev} | dd bs=1 count=4 2>/dev/null)))
     else
       ingit=no
       beta=yes