mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 21:20:19 +00:00
Nuke debian patch disable-git-version.diff.
Running: $ git describe in a code tree lacking dir .git (unpacked release tar-ball, for example) throws an error: fatal: Not a git repository ... and that's noise that can be avoided. Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0f389dd1c9
commit
f7001929d0
1 changed files with 8 additions and 5 deletions
9
Makefile
9
Makefile
|
@ -34,12 +34,15 @@ STORED_VERSION_STRING = \
|
||||||
|
|
||||||
UNAME := $(shell $(CC) -dumpmachine 2>&1 | grep -E -o "linux|darwin|win|gnu|kfreebsd")
|
UNAME := $(shell $(CC) -dumpmachine 2>&1 | grep -E -o "linux|darwin|win|gnu|kfreebsd")
|
||||||
GET_VERSION = ./scripts/get-version
|
GET_VERSION = ./scripts/get-version
|
||||||
VERSION_STRING := $(shell $(GET_VERSION) linux || echo "v$(VERSION)")
|
VERSION_STRING := $(shell [ -d .git ] && $(GET_VERSION) linux || \
|
||||||
|
echo "v$(VERSION)")
|
||||||
# Mac Info.plist style with three numbers 1.2.3
|
# Mac Info.plist style with three numbers 1.2.3
|
||||||
CFBUNDLEVERSION_STRING := $(shell $(GET_VERSION) darwin $(VERSION_STRING) || \
|
CFBUNDLEVERSION_STRING := $(shell [ -d .git ] && \
|
||||||
|
$(GET_VERSION) darwin $(VERSION_STRING) || \
|
||||||
echo "$(VERSION).0")
|
echo "$(VERSION).0")
|
||||||
# Windows .nsi style with four numbers 1.2.3.4
|
# Windows .nsi style with four numbers 1.2.3.4
|
||||||
PRODVERSION_STRING := $(shell $(GET_VERSION) win $(VERSION_STRING) || \
|
PRODVERSION_STRING := $(shell [ -d .git ] && \
|
||||||
|
$(GET_VERSION) win $(VERSION_STRING) || \
|
||||||
echo "$(VERSION).0.0")
|
echo "$(VERSION).0.0")
|
||||||
|
|
||||||
# find libdivecomputer
|
# find libdivecomputer
|
||||||
|
|
Loading…
Reference in a new issue