From: Roy T. Fielding Date: Thu, 12 Apr 2001 20:34:52 +0000 (+0000) Subject: Fix the shell syntax error that occurs when a for list is empty due to X-Git-Tag: 2.0.17~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fdc6afc0aead0564f5b5c03d6f0d0a0333bd25c2;p=apache Fix the shell syntax error that occurs when a for list is empty due to an empty variable expansion. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88833 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build/rules.mk b/build/rules.mk index 368905f86c..16c2bf5be6 100644 --- a/build/rules.mk +++ b/build/rules.mk @@ -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