Commit 9173d759 authored by Bruce Momjian's avatar Bruce Momjian

Modify distdir rule to skip .git directory.

parent 520c41b5
# #
# PostgreSQL top level makefile # PostgreSQL top level makefile
# #
# $PostgreSQL: pgsql/GNUmakefile.in,v 1.49 2008/12/04 07:02:56 petere Exp $ # $PostgreSQL: pgsql/GNUmakefile.in,v 1.50 2009/01/15 01:53:49 momjian Exp $
# #
subdir = subdir =
...@@ -117,7 +117,7 @@ postgresql-test-$(VERSION).tar: distdir ...@@ -117,7 +117,7 @@ postgresql-test-$(VERSION).tar: distdir
distdir: distdir:
rm -rf $(distdir)* $(dummy) rm -rf $(distdir)* $(dummy)
for x in `cd $(top_srcdir) && find . -name CVS -prune -o -print`; do \ for x in `cd $(top_srcdir) && find . \( -name CVS -prune \) -o \( -name .git -prune \) -o -print`; do \
file=`expr X$$x : 'X\./\(.*\)'`; \ file=`expr X$$x : 'X\./\(.*\)'`; \
if test -d "$(top_srcdir)/$$file" ; then \ if test -d "$(top_srcdir)/$$file" ; then \
mkdir "$(distdir)/$$file" && chmod 777 "$(distdir)/$$file"; \ mkdir "$(distdir)/$$file" && chmod 777 "$(distdir)/$$file"; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment