diff options
author | Xavier Chantry <chantry.xavier@gmail.com> | 2011-01-22 15:15:16 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-22 17:02:57 +0100 |
commit | e277e838d798c1463ae5df98dcf637df70e048ec (patch) | |
tree | 2fe1e92eddf0b7bf50bc8e79b849971c50ff003e /src | |
parent | b947db040c2c586636fc290f0fadbe89e9802450 (diff) | |
download | pacman-e277e838d798c1463ae5df98dcf637df70e048ec.tar.gz pacman-e277e838d798c1463ae5df98dcf637df70e048ec.tar.xz |
Makefile: Use git describe --dirty for GIT VERSION
dirty indicates if the repo has uncommited changes or not when building,
so dont hardcode this info.
Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/Makefile.am b/src/pacman/Makefile.am index 8c14562c..31e8b134 100644 --- a/src/pacman/Makefile.am +++ b/src/pacman/Makefile.am @@ -18,7 +18,7 @@ INCLUDES = -I$(top_srcdir)/lib/libalpm AM_CFLAGS = -pedantic -D_GNU_SOURCE if USE_GIT_VERSION -GIT_VERSION := $(shell sh -c 'git describe --abbrev=4 | sed s/^v//')-dirty +GIT_VERSION := $(shell sh -c 'git describe --abbrev=4 --dirty | sed s/^v//') DEFS += -DGIT_VERSION=\"$(GIT_VERSION)\" endif |