summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ndb/Epilogue.mk10
-rw-r--r--ndb/SrcDist.sh18
2 files changed, 12 insertions, 16 deletions
diff --git a/ndb/Epilogue.mk b/ndb/Epilogue.mk
index 7a4d1485d6c..dc78a66a1f8 100644
--- a/ndb/Epilogue.mk
+++ b/ndb/Epilogue.mk
@@ -852,16 +852,14 @@ ebrowse: DUMMY
cd $(NDB_TOP); ebrowse --file tmpfile~
cd $(NDB_TOP); rm -f tmpfile~
-DISTFILES = $(shell /bin/sh SrcDist.sh)
-
srcdir = $(NDB_TOP)
top_distdir = $(NDB_TOP)/..
mkinstalldirs := /bin/sh ../mkinstalldirs
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)/ndb
-distdir: $(DISTFILES)
+distdir:
$(mkinstalldirs) $(distdir)
- @list='$(DISTFILES)'; for file in $$list; do \
+ @list='$(shell /bin/sh SrcDist.sh)'; for file in $$list; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
@@ -870,9 +868,7 @@ distdir: $(DISTFILES)
else \
dir=''; \
fi; \
- if test -d $$d/$$file; then \
- echo $(distdir)$$dir; \
- else \
+ if test -f $$d/$$file; then \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
diff --git a/ndb/SrcDist.sh b/ndb/SrcDist.sh
index dbc098c0611..03e697b1475 100644
--- a/ndb/SrcDist.sh
+++ b/ndb/SrcDist.sh
@@ -1,5 +1,5 @@
#
-# Invoked from scripts/make_binary_distribution as "sh BinDist.sh".
+# Invoked from make distdir.
# Prints list of dirs and files to include under mysql/ndb.
#
@@ -29,35 +29,35 @@ __END__
# docs
-#find docs/*.html docs/*.pdf -print | sort -t/
+#find docs/*.html docs/*.pdf -print
# include
-find include -print | grep -v /SCCS | sort -t/
+find include -print | grep -v /SCCS
# config
-find config -print | grep -v /SCCS | sort -t/
+find config -print | grep -v /SCCS
# tools
-find tools -print | grep -v /SCCS | grep -v '\.o' | grep -v tools/ndbsql | sort -t/
+find tools -print | grep -v /SCCS | grep -v '\.o' | grep -v '\.depend' | grep -v tools/ndbsql
# home
-find home -print | grep -v /SCCS | sort -t/
+find home -print | grep -v /SCCS
# test
-find test -print | grep -v /SCCS | grep -v '\.o' | grep -v test/odbc | sort -t/
+find test -print | grep -v /SCCS | grep -v '\.o' | grep -v '\.depend' | grep -v test/odbc
# src
-find src -print | grep -v /SCCS | grep -v '\.o' | grep -v src/client/odbc | grep -v cpcc-win32 | sort -t/
+find src -print | grep -v /SCCS | grep -v '\.o' | grep -v '\.depend' | grep -v src/client/odbc | grep -v cpcc-win32
# demos
-find demos -print | grep -v /SCCS | grep -v '\.o' | sort -t/
+find demos -print | grep -v /SCCS | grep -v '\.o' | grep -v '\.depend'
# examples