]> git.proxmox.com Git - mirror_frr.git/commitdiff
tools/tarsource.sh: deal with AC_INIT []
authorDavid Lamparter <equinox@diac24.net>
Fri, 18 Jan 2019 14:41:30 +0000 (15:41 +0100)
committerDavid Lamparter <equinox@diac24.net>
Tue, 19 Feb 2019 20:34:08 +0000 (21:34 +0100)
configure.ac got cleaned up, now there's [] around the version number.

Signed-off-by: David Lamparter <equinox@diac24.net>
tools/tarsource.sh

index 2e7ed4411db5ea65634c491c1f6f7189f3e20b66..eee2a9739b3398ee28418ec05079aa18700f5056 100755 (executable)
@@ -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"