]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] texi: prefer $(CURDIR) over `pwd` in recipes
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 12 Aug 2012 10:12:22 +0000 (12:12 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 12 Aug 2012 10:12:22 +0000 (12:12 +0200)
* lib/am/texibuild.mk: Here.  We can do so because the involved
recipes did not chdir before invoking `pwd`.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/texibuild.mk

index 876c788fde789bb7123756cde67965f6c579996a..5d515069eec6a6474ee58c5864a0bed181d59fce 100644 (file)
@@ -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 \