From: David Lamparter Date: Mon, 17 Dec 2018 00:02:51 +0000 (+0100) Subject: tools/tarsource.sh: keep version info on non-git X-Git-Tag: frr-7.0~5^2~18 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=aefbc5a84c1fe0b4e86f553bd83d1b6b632c1148;p=matthieu%2Ffrr.git tools/tarsource.sh: keep version info on non-git extraver won't have any useful value on a non-git run. Signed-off-by: David Lamparter --- diff --git a/tools/tarsource.sh b/tools/tarsource.sh index 8ec3346c35..110558da0d 100755 --- a/tools/tarsource.sh +++ b/tools/tarsource.sh @@ -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