[vlc-devel] commit: Fix the contrib for files and dirs with spaces (Ruud Althuizen )
git version control
git at videolan.org
Thu Aug 13 17:05:43 CEST 2009
vlc | branch: master | Ruud Althuizen <ruud at il.fontys.nl> | Thu Aug 13 14:03:54 2009 +0200| [8df851731c67de69001e66696c614a8e6e908fb5] | 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>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8df851731c67de69001e66696c614a8e6e908fb5
---
extras/contrib/Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/extras/contrib/Makefile b/extras/contrib/Makefile
index 9a33ac4..131c902 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