From d60d13d9dbb223d7241694444b7b9207b6c500ab Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 7 May 2021 14:08:41 +0800 Subject: [PATCH] improve Makefile for building dist and versions --- utils/generate-version-file.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/utils/generate-version-file.sh b/utils/generate-version-file.sh index 7d663b1d5..4e0aed991 100755 --- a/utils/generate-version-file.sh +++ b/utils/generate-version-file.sh @@ -1,13 +1,16 @@ #!/bin/bash -packageName=version -version=$(git describe --tags) +PACKAGE_NAME=version + +if [[ -z $VERSION ]] ; then + VERSION=$(git describe --tags) +fi cat <