[vlc-commits] macOS package: Simplify optional copying of locales

David Fuhrmann git at videolan.org
Wed Mar 20 19:22:35 CET 2019


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Mon Mar 18 20:02:47 2019 +0100| [3b8bb2911db3b31a73e705ebcb10b59a9a020469] | committer: David Fuhrmann

macOS package: Simplify optional copying of locales

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

 extras/package/macosx/package.mak | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extras/package/macosx/package.mak b/extras/package/macosx/package.mak
index b3e70dde59..fb323bd748 100644
--- a/extras/package/macosx/package.mak
+++ b/extras/package/macosx/package.mak
@@ -42,7 +42,7 @@ endif
 	mkdir -p $@/Contents/MacOS/include/
 	(cd "$(prefix)/include" && $(AMTAR) -c --exclude "plugins" vlc) | $(AMTAR) -x -C $@/Contents/MacOS/include/
 	## Copy translations
-	test -d "$(prefix)/share/locale" && cp -r "$(prefix)/share/locale" $@/Contents/Resources/share/ || true
+	-cp -a "$(prefix)/share/locale" $@/Contents/Resources/share/
 	printf "APPLVLC#" >| $@/Contents/PkgInfo
 	## Copy libs
 	find $(prefix)/lib -name 'libvlc*.dylib' -maxdepth 1 -exec cp -a {} $@/Contents/Frameworks \;



More information about the vlc-commits mailing list