Skip to content

Commit a2b00bb

Browse files
committed
* Correctly handle filenames that contain spaces
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926111 13f79535-47bb-0310-9956-ffa450edef68
1 parent b5fe0f8 commit a2b00bb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,19 +167,19 @@ docs:
167167
fi
168168

169169
update-changes:
170-
@for i in `find changes-entries -type f`; do \
170+
@find changes-entries -type f | while read -r i ; do \
171171
cp CHANGES CHANGES.tmp ; \
172-
awk -v fname=$$i 'BEGIN{done = 0; active = 0} \
172+
awk -v fname="$$i" 'BEGIN{done = 0; active = 0} \
173173
done == 0 && active == 0 && /^Changes with Apache /{ active = 1; print; next}; \
174174
/^( *\*|Changes with Apache )/ && active == 1 && done == 0{rec=$$0; while((getline<fname) > 0){if (! ($$0 ~ /^ *$$/)){print}}printf "\n";print rec; active = 0; done = 1; next} //;' \
175175
CHANGES.tmp > CHANGES ; \
176176
rm CHANGES.tmp ; \
177177
if [ -n "$(SVN)" ] ; then \
178-
if ! $(SVN) rm $$i 2>/dev/null ; then \
179-
$(RM) $$i ; \
178+
if ! $(SVN) rm "$$i" 2>/dev/null ; then \
179+
$(RM) "$$i" ; \
180180
fi ; \
181181
else \
182-
$(RM) $$i ; \
182+
$(RM) "$$i" ; \
183183
fi ; \
184184
done ; \
185185
if [ -n "$(SVN)" ] ; then \

0 commit comments

Comments
 (0)