tools/tarsource.sh: deal with AC_INIT []

configure.ac got cleaned up, now there's [] around the version number.

Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
David Lamparter 2019-01-18 15:41:30 +01:00
parent 4734c22a4f
commit 1bc91be4b8

View File

@ -222,6 +222,8 @@ if $writeversion; then
pkgver="${pkgver#*,}"
pkgver="${pkgver%,*}"
pkgver="`echo $pkgver`" # strip whitespace
pkgver="${pkgver#[}"
pkgver="${pkgver%]}"
echo -e "\033[32;1mwriting version ID \033[36;1mfrr-$pkgver$extraver\033[m"