mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
Fix to support git worktree.
* autogen.sh, Makefile.am, doc/Makefile.am: Use -e for testing .git. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
e2f984b4af
commit
96237b9a63
@ -120,7 +120,7 @@ endif
|
|||||||
gen_start_date = 2011-12-01T06:00:00
|
gen_start_date = 2011-12-01T06:00:00
|
||||||
.PHONY: gen-ChangeLog
|
.PHONY: gen-ChangeLog
|
||||||
gen-ChangeLog:
|
gen-ChangeLog:
|
||||||
if test -d $(top_srcdir)/.git; then \
|
if test -e $(top_srcdir)/.git; then \
|
||||||
(cd $(top_srcdir) && \
|
(cd $(top_srcdir) && \
|
||||||
$(GITLOG_TO_CHANGELOG) --append-dot --tear-off \
|
$(GITLOG_TO_CHANGELOG) --append-dot --tear-off \
|
||||||
--amend=build-aux/git-log-fix \
|
--amend=build-aux/git-log-fix \
|
||||||
|
@ -214,7 +214,7 @@ if [ "$myhost" = "find-version" ]; then
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
beta=no
|
beta=no
|
||||||
if [ -d .git ]; then
|
if [ -e .git ]; then
|
||||||
ingit=yes
|
ingit=yes
|
||||||
tmp=$(git describe --match "${matchstr1}" --long 2>/dev/null)
|
tmp=$(git describe --match "${matchstr1}" --long 2>/dev/null)
|
||||||
if [ -n "$tmp" ]; then
|
if [ -n "$tmp" ]; then
|
||||||
|
@ -136,7 +136,7 @@ dist-hook: defsincdate
|
|||||||
|
|
||||||
defsincdate: $(gnupg_TEXINFOS)
|
defsincdate: $(gnupg_TEXINFOS)
|
||||||
: >defsincdate ; \
|
: >defsincdate ; \
|
||||||
if test -d $(top_srcdir)/.git; then \
|
if test -e $(top_srcdir)/.git; then \
|
||||||
(cd $(srcdir) && git log -1 --format='%ct' \
|
(cd $(srcdir) && git log -1 --format='%ct' \
|
||||||
-- $(gnupg_TEXINFOS) 2>/dev/null) >>defsincdate; \
|
-- $(gnupg_TEXINFOS) 2>/dev/null) >>defsincdate; \
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user