hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 2c867e7e48c1813f6855cd5391e6292ad6a3d785
parent 46581a56e603443824033e5c86584d5f9d5f8558
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed,  9 Feb 2022 08:39:38 +0100

scripts/version: let environment set version

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mscripts/version | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/version b/scripts/version @@ -1,12 +1,12 @@ #!/bin/sh # Distro packagers may set the LOCALVER variable to add their distribution to # the version, e.g. 1.0-alpine. -VERSION=dev +VERSION=${VERSION:-dev} ver=$(git describe 2>/dev/null) if [ $? -ne 0 ] then - ver="dev+$(git log -1 --format='%h')" + ver="dev+$(git log -1 --format='%h' 2>/dev/null)" if [ $? -ne 0 ] then # git presumed unavailable