From e300ea6a372bee756783c96ae87f9228f2ae8b86 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 10 Dec 2017 12:52:16 +0100 Subject: travis-ci: tentatively fix git --describe for version. --- dist/linux/travis-ci.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dist/linux') diff --git a/dist/linux/travis-ci.sh b/dist/linux/travis-ci.sh index 659171d12..7dd6e7964 100755 --- a/dist/linux/travis-ci.sh +++ b/dist/linux/travis-ci.sh @@ -14,6 +14,11 @@ printf "$ANSI_YELLOW[TRAVIS] Travis environment $ANSI_NOCOLOR\n" env | grep TRAVIS echo -en "travis_fold:end:travis_env\r" +# Build version.tmp and replace version.in with it (so that the version is +# correctly set). +git fetch --unshallow +make -f Makefile.in srcdir=. version.tmp +cp version.tmp src/version.in # Compute package name -- cgit v1.2.3