]> granicus.if.org Git - sudo/commitdiff
Fix install-nls target from builddir.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 28 Oct 2014 20:45:39 +0000 (14:45 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 28 Oct 2014 20:45:39 +0000 (14:45 -0600)
Makefile.in

index 37be7ebceae128e0b2df9f459b268313e5496991..04dc51f45bde3b76083dfdc75d37291856bbba58 100644 (file)
@@ -252,9 +252,8 @@ compile-po:
 
 install-nls:
        @if test "$(NLS)" = "enabled"; then \
-           cd $(top_srcdir); \
            for pot in $(POTFILES); do \
-               podir=`dirname $$pot`; \
+               podir=`dirname $(top_srcdir)/$$pot`; \
                domain=`basename $$pot .pot`; \
                SUDO_LINGUAS=$${LINGUAS-"`echo $$podir/*.mo | $(SED) 's:'$$podir'/\([^ ]*\).mo:\1:g'`"}; \
                echo $(ECHO_N) "Installing $$domain message catalogs:$(ECHO_C)"; \