]> granicus.if.org Git - apache/commitdiff
Fix the shell syntax error that occurs when a for list is empty due to
authorRoy T. Fielding <fielding@apache.org>
Thu, 12 Apr 2001 20:34:52 +0000 (20:34 +0000)
committerRoy T. Fielding <fielding@apache.org>
Thu, 12 Apr 2001 20:34:52 +0000 (20:34 +0000)
an empty variable expansion.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88833 13f79535-47bb-0310-9956-ffa450edef68

build/rules.mk

index 368905f86c11e826ce4f51417f08c2bb165c1ad0..16c2bf5be6084afbd5eb33733130828336e3733b 100644 (file)
@@ -173,8 +173,10 @@ all-p: $(targets)
 install-p: $(targets) $(install_targets)
        @if test -n '$(PROGRAMS)'; then \
                test -d $(bindir) || $(MKINSTALLDIRS) $(bindir); \
-               for i in $(PROGRAMS); do \
+               for i in $(PROGRAMS) ""; do \
+                   if test "x$$i" != "x"; then \
                        $(INSTALL_PROGRAM) $$i $(bindir); \
+                   fi; \
                done; \
        fi