Remove several uses of cp -a, and fix broken dist-hook in sql-bench.

parent 86b3263d
......@@ -97,7 +97,7 @@ sub main
# on the toplevel of the directory instead. file 'PUBLIC' shouldn't
# exist in the new mysql distributions, but let's be sure..
`rm -f $destdir/PUBLIC`;
`cp -a $WD/Docs/LICENSE $destdir/`;
`cp -p $WD/Docs/LICENSE $destdir/`;
# fix file copyrights
&fix_usage_copyright();
......
......@@ -37,13 +37,13 @@ dist-hook:
$(distdir)/Results $(distdir)/Results-linux \
$(distdir)/Results-win32 \
$(distdir)/limits $(distdir)/Comments
$(INSTALL_DATA) $(srcdir)/Data/ATIS/*.* $(distdir)/Data
$(INSTALL_DATA) $(srcdir)/Data/Wisconsin/*.* $(distdir)/Data
$(INSTALL_DATA) $(srcdir)/Results/*-* $(distdir)/
$(INSTALL_DATA) $(srcdir)/Results-linux/*-* $(distdir)/
$(INSTALL_DATA) $(srcdir)/Results-win32/*-* $(distdir)/
$(INSTALL_DATA) $(srcdir)/limits/*.* $(distdir)/
$(INSTALL_DATA) $(srcdir)/Comments/*.* $(distdir)/
$(INSTALL_DATA) $(srcdir)/Data/ATIS/*.* $(distdir)/Data/ATIS
$(INSTALL_DATA) $(srcdir)/Data/Wisconsin/*.* $(distdir)/Data/Wisconsin
$(INSTALL_DATA) $(srcdir)/Results/*-* $(distdir)/Results
$(INSTALL_DATA) $(srcdir)/Results-linux/*-* $(distdir)/Results-linux
$(INSTALL_DATA) $(srcdir)/Results-win32/*-* $(distdir)/Results-win32
$(INSTALL_DATA) $(srcdir)/limits/*.* $(distdir)/limits
$(INSTALL_DATA) $(srcdir)/Comments/*.* $(distdir)/Comments
install-data-local:
$(mkinstalldirs) \
......
## Process this file with automake to create Makefile.in
# This requires gnu cp at distribution time.
dist-hook:
for lang in @AVAILABLE_LANGUAGES@ charsets; \
do cp -a $(srcdir)/$$lang $(distdir); done
for dir in charsets @AVAILABLE_LANGUAGES@; do \
test -d $(distdir)/$$dir || mkdir $(distdir)/$$dir; \
$(INSTALL_DATA) $(srcdir)/$$dir/*.* $(distdir)/$$dir; \
done; \
$(INSTALL_DATA) $(srcdir)/charsets/Index $(distdir)/charsets; \
all: @AVAILABLE_LANGUAGES_ERRORS@
......
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