build: use $(shell ...) to get version
gitea/gitea-deb/pipeline/head There was a failure building this commit Details

This commit is contained in:
Frédéric Péters 2023-02-26 16:05:07 +01:00
parent fbdc882b2f
commit 621545b6cd
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
.PHONY: clean name version fullname dist dist-bzip2
NAME=gitea
VERSION=`(test -d .git && git describe || cat VERSION) | sed 's/^v//; s/-/./g' `
VERSION=$(shell (test -d .git && git describe || cat VERSION) | sed 's/^v//; s/-/./g')
prefix = /usr