From bc9b8ccafdf9873b5d075ba4118e3ad3f00e7394 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sun, 12 Aug 2012 12:12:22 +0200 Subject: [PATCH] [ng] texi: prefer $(CURDIR) over `pwd` in recipes * lib/am/texibuild.mk: Here. We can do so because the involved recipes did not chdir before invoking `pwd`. Signed-off-by: Stefano Lattarini --- lib/am/texibuild.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/am/texibuild.mk b/lib/am/texibuild.mk index 876c788fd..5d515069e 100644 --- a/lib/am/texibuild.mk +++ b/lib/am/texibuild.mk @@ -52,7 +52,7 @@ define am.texi.build.info ## to fail, the info files are not removed. (They are needed by the ## developer while he writes documentation.) $(AM_V_MAKEINFO)restore=: && backupdir=.am$$$$ && \ - $(if $1,am__cwd=`pwd` && cd $(srcdir) &&) \ + $(if $1,cd $(srcdir) &&) \ rm -rf $$backupdir && mkdir $$backupdir && \ ## If makeinfo is not installed we must not backup the files so ## 'missing' can do its job and touch $@ if it exists. @@ -61,7 +61,7 @@ define am.texi.build.info if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \ done; \ else :; fi && \ - $(if $(am__info_insrc),cd "$$am__cwd" &&) \ + $(if $(am__info_insrc),cd '$(CURDIR)' &&) \ if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) \ -I $(@D) -I $(srcdir)/$(@D) -o $@ $<; \ then \ -- 2.47.2