[vlc-devel] commit: Fix the contrib for files and dirs with spaces (Ruud Althuizen )

git version control git at videolan.org
Thu Aug 27 19:34:47 CEST 2009


vlc | branch: 1.0-bugfix | Ruud Althuizen <ruud at il.fontys.nl> | Thu Aug 13 14:03:54 2009 +0200| [1424210e9d949dac66eb0a64371b3d9d9aadb8ad] | committer: Rémi Denis-Courmont 

Fix the contrib for files and dirs with spaces

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 8df851731c67de69001e66696c614a8e6e908fb5)

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1424210e9d949dac66eb0a64371b3d9d9aadb8ad
---

 extras/contrib/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/extras/contrib/Makefile b/extras/contrib/Makefile
index b2197d6..14945f3 100644
--- a/extras/contrib/Makefile
+++ b/extras/contrib/Makefile
@@ -56,8 +56,8 @@ using-bin: contrib-macosx-$(ARCH)-$(CONTRIBREV).tar.bz2
 	mkdir tmp
 	(cd tmp && tar jxvf ../$<)
 	./change_prefix.sh tmp @@CONTRIB_PREFIX@@  $(PREFIX)
-	for dir in `(cd tmp && find . -type d)`; do mkdir -p -- $$dir; done
-	for i in `(cd tmp && find . -not -type d)`; do mv -f tmp/$$i $$i; done
+	(cd tmp && find . -type d) | while read dir; do mkdir -p -- "$$dir"; done
+	(cd tmp && find . -not -type d) | while read i; do mv -f -- tmp/"$$i" "$$i"; done
 	rm -rf tmp
 endif
 




More information about the vlc-devel mailing list