[recipes] Use git describe for git versions
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Use git describe for git versions
- Date: Tue, 20 Dec 2016 14:10:09 +0000 (UTC)
commit c748ab2c21dea5f13ae3c0a21727fdb8390af6b6
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Dec 20 09:09:02 2016 -0500
Use git describe for git versions
Recommended by desrt.
src/Makefile.am | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 9c459aa..c1eb6e6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS = recipes
-commitid := $(shell $(GIT) log -1 --oneline | cut -f1 -d' ')
+commitid := $(shell $(GIT) describe)
recipes_CFLAGS = \
$(WARN_CFLAGS) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]