From: Stefan Fritsch Date: Sat, 4 Jun 2011 17:41:13 +0000 (+0000) Subject: Avoid using a tmpfile with fixed name when creating export_files, since this X-Git-Tag: 2.3.13~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=639c26f54a0e69404e863ff039e0919403bb15f9;p=thirdparty%2Fapache%2Fhttpd.git Avoid using a tmpfile with fixed name when creating export_files, since this is bad for parallel builds. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1131446 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/Makefile.in b/server/Makefile.in index 9f9fa13601f..42d1fe5c142 100644 --- a/server/Makefile.in +++ b/server/Makefile.in @@ -54,16 +54,13 @@ delete-exports: fi export_files: - tmp=export_files_unsorted.txt; \ - rm -f $$tmp && touch $$tmp; \ - for dir in $(EXPORT_DIRS); do \ - ls $$dir/*.h >> $$tmp; \ - done; \ - for dir in $(EXPORT_DIRS_APR); do \ - (ls $$dir/ap[ru].h $$dir/ap[ru]_*.h >> $$tmp 2>/dev/null); \ - done; \ - sort -u $$tmp > $@; \ - rm -f $$tmp + ( for dir in $(EXPORT_DIRS); do \ + ls $$dir/*.h ; \ + done; \ + for dir in $(EXPORT_DIRS_APR); do \ + ls $$dir/ap[ru].h $$dir/ap[ru]_*.h 2>/dev/null; \ + done; \ + ) | sort -u > $@ exports.c: export_files $(AWK) -f $(top_srcdir)/build/make_exports.awk `cat $?` > $@