SrcDist.sh, Epilogue.mk:

improved distdir


ndb/Epilogue.mk:
  improved distdir
ndb/SrcDist.sh:
  improved distdir
This commit is contained in:
unknown 2004-04-29 21:22:03 +02:00
parent 9d3d017c6c
commit 6de9b596b2
2 changed files with 12 additions and 16 deletions

View file

@ -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; \

View file

@ -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