comparison binary-dist-rules.mk @ 3446:f827586fef9c

* binary-dist-rules.mk: don't use $(shell ...) in shell for loop
author John W. Eaton <jwe@octave.org>
date Thu, 23 Jan 2014 12:38:21 -0500
parents db18ee645aec
children 70b110956a4e
comparison
equal deleted inserted replaced
3445:7ded8c8ed5f2 3446:f827586fef9c
83 83
84 ifeq ($(STRIP_DIST_FILES),yes) 84 ifeq ($(STRIP_DIST_FILES),yes)
85 ifeq ($(MXE_WINDOWS_BUILD),yes) 85 ifeq ($(MXE_WINDOWS_BUILD),yes)
86 define strip-dist-files 86 define strip-dist-files
87 echo "stripping files..." 87 echo "stripping files..."
88 for f in $(shell find $(OCTAVE_DIST_DIR) -name '*.dll' -o -name '*.exe'); do \ 88 for f in `find $(OCTAVE_DIST_DIR) -name '*.dll' -o -name '*.exe'`; do \
89 $(MXE_STRIP) $$f; \ 89 $(MXE_STRIP) $$f; \
90 done 90 done
91 endef 91 endef
92 else 92 else
93 define strip-dist-files 93 define strip-dist-files
94 echo "stripping files..." 94 echo "stripping files..."
95 for f in $(shell find $(OCTAVE_DIST_DIR) -type f -a -perm /a+x); do \ 95 for f in `find $(OCTAVE_DIST_DIR) -type f -a -perm /a+x`; do \
96 case "`file $$f`" in \ 96 case "`file $$f`" in \
97 *script*) \ 97 *script*) \
98 ;; \ 98 ;; \
99 *executable* | *archive* | *"shared object"*) \ 99 *executable* | *archive* | *"shared object"*) \
100 $(MXE_STRIP) $$f; \ 100 $(MXE_STRIP) $$f; \