[vlc-devel] [PATCH] Fix the contrib for files and dirs with spaces
Ruud Althuizen
ruud at hyde.il.fontys.nl
Thu Aug 13 14:03:54 CEST 2009
From: Ruud Althuizen <ruud at il.fontys.nl>
---
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
--
1.6.4
More information about the vlc-devel
mailing list