]> git.proxmox.com Git - mirror_frr.git/commitdiff
tools/tarsource.sh: keep version info on non-git
authorDavid Lamparter <equinox@diac24.net>
Mon, 17 Dec 2018 00:02:51 +0000 (01:02 +0100)
committerDavid Lamparter <equinox@diac24.net>
Tue, 19 Feb 2019 20:34:06 +0000 (21:34 +0100)
extraver won't have any useful value on a non-git run.

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

index 8ec3346c35aeb389579e75bde27931cb482622ba..110558da0dbb16ecb775838bde35722dd56c3a79 100755 (executable)
@@ -246,6 +246,9 @@ echo -e "\033[33;1mpreparing source tree\033[m"
 if test -f config.version; then
        # never executed for clean git build
        . ./config.version
+       if $nongit; then
+               $extraset || extraver="$EXTRAVERSION"
+       fi
 fi
 if test \! -f configure; then
        # always executed for clean git build