]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* Correctly handle filenames that contain spaces
authorRuediger Pluem <rpluem@apache.org>
Wed, 4 Jun 2025 09:31:05 +0000 (09:31 +0000)
committerRuediger Pluem <rpluem@apache.org>
Wed, 4 Jun 2025 09:31:05 +0000 (09:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926111 13f79535-47bb-0310-9956-ffa450edef68

Makefile.in

index b5f86a9752c0ff575015bfa8d04a7e8dec8c5a04..5e4b2a506a1e1dde9be0a48779d88f1736c79e73 100644 (file)
@@ -167,19 +167,19 @@ docs:
        fi
 
 update-changes:
-       @for i in `find changes-entries -type f`; do \
+       @find changes-entries -type f | while read -r i ; do \
            cp CHANGES CHANGES.tmp ; \
-           awk -v fname=$$i 'BEGIN{done = 0; active = 0} \
+           awk -v fname="$$i" 'BEGIN{done = 0; active = 0} \
                            done == 0 && active == 0 && /^Changes with Apache /{ active = 1; print; next}; \
                            /^( *\*|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} //;' \
            CHANGES.tmp > CHANGES ; \
            rm CHANGES.tmp ; \
            if [ -n "$(SVN)" ] ; then \
-               if ! $(SVN) rm $$i 2>/dev/null ; then \
-                   $(RM) $$i ; \
+               if ! $(SVN) rm "$$i" 2>/dev/null ; then \
+                   $(RM) "$$i" ; \
                fi ; \
            else \
-               $(RM) $$i ; \
+               $(RM) "$$i" ; \
            fi ; \
        done ; \
        if [ -n "$(SVN)" ] ; then \