HAWQ-537. Accept filenames with spaces

Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/8083da28
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/8083da28
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/8083da28

Branch: refs/heads/2.0.0.0-incubating
Commit: 8083da2867dc9a351809f45746a4c52c271c50fc
Parents: ca9a4a9
Author: C.J. Jameson and Devadass Santhosh Sampath <[email protected]>
Authored: Tue Mar 22 10:32:03 2016 -0700
Committer: rlei <[email protected]>
Committed: Mon Jul 18 18:06:07 2016 +0800

----------------------------------------------------------------------
 GNUmakefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/8083da28/GNUmakefile.in
----------------------------------------------------------------------
diff --git a/GNUmakefile.in b/GNUmakefile.in
index 7d22d38..fd97f4f 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -129,7 +129,7 @@ postgresql-test-$(VERSION).tar: distdir
 
 distdir:
        -rm -rf $(distdir)* $(dummy)
-       for x in `cd $(top_srcdir) && find . -name CVS -prune -o -print`; do \
+       IFS=$$(echo -en "\n\b"); for x in `cd $(top_srcdir) && find . -name CVS 
-prune -o -print`; do \
          file=`expr X$$x : 'X\./\(.*\)'`; \
          if test -d "$(top_srcdir)/$$file" ; then \
            mkdir "$(distdir)/$$file" && chmod 777 "$(distdir)/$$file"; \

Reply via email to