mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
72682e4654
Signed-off-by: William Casarin <jb55@jb55.com>
16 lines
598 B
Diff
16 lines
598 B
Diff
Subject: Prevent "-dirty" from being erroneously added to the version
|
|
|
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
|
index d36d1a3..00048fc 100644
|
|
--- a/src/Makefile.am
|
|
+++ b/src/Makefile.am
|
|
@@ -28,7 +28,7 @@ always:
|
|
# Always rebuild because .git/HEAD is a symbolic ref one can't depend on
|
|
StellarCoreVersion.h: always
|
|
@vers=$$(cd "$(srcdir)" \
|
|
- && git describe --always --dirty --tags 2>/dev/null \
|
|
+ && git describe --always --tags 2>/dev/null \
|
|
|| echo "$(PACKAGE) $(VERSION)"); \
|
|
echo "#define STELLAR_CORE_VERSION \"$$vers\"" > $@~
|
|
@if cmp -s $@~ $@; then rm -f $@~; else \
|