Skip to content
Snippets Groups Projects
Commit 7f56822b authored by Guillaume Roguez's avatar Guillaume Roguez Committed by gerrit2
Browse files

build: permit user to overload revision number

Let user choose the RING_REVISION and RING_DIRTY_REPO values.
This also permit packaging to build from non-git sources tree
with a fancy and valid revision string.

Just set previous environment variable before to run
the make command.

Change-Id: I24d71f985decc2187f09ab21eb72e588ede7fb7a
Tuleap: #71
parent d1928b0e
Branches
Tags
No related merge requests found
......@@ -18,8 +18,8 @@ if BUILD_GSM
GSMCODEC=-DHAVE_GSM_CODEC
endif
RING_DIRTY_REPO:=$(shell git diff-index --quiet HEAD 2>/dev/null || echo dirty)
RING_REVISION:=$(shell git log -1 --format="%h" --abbrev=10 2>/dev/null)
RING_DIRTY_REPO ?= $(shell git diff-index --quiet HEAD 2>/dev/null || echo dirty)
RING_REVISION ?= $(shell git log -1 --format="%h" --abbrev=10 2>/dev/null)
# Preprocessor flags
AM_CPPFLAGS = \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment