projects
/
platform
/
upstream
/
xz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e1326f
)
Build: Fix mydist rule when .git doesn't exist.
author
Lasse Collin
<lasse.collin@tukaani.org>
Sat, 23 Oct 2010 14:25:52 +0000
(17:25 +0300)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Sat, 23 Oct 2010 14:25:52 +0000
(17:25 +0300)
Makefile.am
patch
|
blob
|
history
diff --git
a/Makefile.am
b/Makefile.am
index
809197e
..
91c7c08
100644
(file)
--- a/
Makefile.am
+++ b/
Makefile.am
@@
-79,6
+79,7
@@
dist-hook:
# This works with GNU tar and gives cleaner package than normal 'make dist'.
mydist:
+ VERSION=$(VERSION); \
if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=4 | cut -b2-`; \
test -n "$$SNAPSHOT" && VERSION=$$SNAPSHOT; \