mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix generation of lyx_commit_hash.h
The code in the Makefile was incorrect.
This commit is contained in:
parent
c9f398d7c5
commit
04eef3480f
@ -305,14 +305,14 @@ STANDALONEFILES = \
|
||||
|
||||
.PHONY: update_commit_hash
|
||||
|
||||
LCH_V_GEN = $(lch__v_GEN_@AM_V@)
|
||||
lch__v_GEN_ = $(lch__v_GEN_@AM_DEFAULT_V@)
|
||||
lch__v_GEN_0 = @echo " GEN lyx_commit_hash.h";
|
||||
lch__v_GEN_1 =
|
||||
LCH_V_CHK = $(lch__v_CHK_@AM_V@)
|
||||
lch__v_CHK_ = $(lch__v_CHK_@AM_DEFAULT_V@)
|
||||
lch__v_CHK_0 = @echo " CHK lyx_commit_hash.h";
|
||||
lch__v_CHK_1 =
|
||||
|
||||
update_commit_hash:
|
||||
rm -f hash-temp \
|
||||
$(LCH_V_GEN)hash=`cd "$(top_srcdir)" && git log -1 --pretty=format:%H 2>/dev/null || echo none` ; \
|
||||
$(LCH_V_CHK)rm -f hash-temp ; \
|
||||
hash=`cd "$(top_srcdir)" && git log -1 --pretty=format:%H 2>/dev/null || echo none` ; \
|
||||
sed s/@LYX_GIT_COMMIT_HASH@/$$hash/ "$(srcdir)"/lyx_commit_hash.h.in >hash-temp ; \
|
||||
cmp -s lyx_commit_hash.h hash-temp || cp hash-temp lyx_commit_hash.h ; \
|
||||
rm -f hash-temp
|
||||
|
Loading…
Reference in New Issue
Block a user