OSDN Git Service

use CURDIR
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 25 Aug 2009 08:34:09 +0000 (10:34 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 25 Aug 2009 08:34:09 +0000 (10:34 +0200)
  use CURDIR instead of spawning a separate shell as suggested by
  Mike.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
extra/locale/Makefile.in

index 4902ce1..fe2e3cf 100644 (file)
@@ -80,7 +80,7 @@ $(locale_OUT)/codesets.txt:
            echo " "; \
            echo "You do not have a codesets.txt file.  Please create this "; \
            echo "file in the $(locale_OUT) directory by running something like: "; \
-           echo "  find $(shell pwd)/$(locale_DIR)/charmaps -name \"*.pairs\" > \\"; \
+           echo "  find $(CURDIR)/$(locale_DIR)/charmaps -name \"*.pairs\" > \\"; \
            echo "        $@"; \
            echo "and then edit that file to disable/enable the codesets you wish to support. "; \
            echo " "; \
@@ -107,13 +107,13 @@ else
 $(locale_OUT)/codesets.txt:
        @$(disp_gen)
 ifeq ($(UCLIBC_BUILD_MINIMAL_LOCALE),y)
-       $(Q)echo "$(shell pwd)/$(locale_DIR)/charmaps/ASCII.pairs" > $@ ; \
-       $(Q)echo "$(shell pwd)/$(locale_DIR)/charmaps/ISO-8859-1.pairs" >> $@
+       $(Q)echo "$(CURDIR)/$(locale_DIR)/charmaps/ASCII.pairs" > $@ ; \
+       $(Q)echo "$(CURDIR)/$(locale_DIR)/charmaps/ISO-8859-1.pairs" >> $@
 else
        $(Q)set -e; \
                tmp=`mktemp $@.XXXXXX 2>/dev/null || true`; \
                [ -z "$$tmp" ] && tmp='$@.new'; \
-               find $(shell pwd)/$(locale_DIR)/charmaps/ -name '*.pairs' | \
+               find $(CURDIR)/$(locale_DIR)/charmaps/ -name '*.pairs' | \
                        sort > $$tmp; \
                [ -s $$tmp ]; \
                if cmp $@ $$tmp >/dev/null 2>&1; then \