[vlc-devel] [VLC 3.x 1/2] package/macosx: Fix bundling when locales are missing

David Fuhrmann david.fuhrmann at gmail.com
Thu Apr 22 15:54:12 UTC 2021


> Am 22.04.2021 um 17:43 schrieb Marvin Scholz <epirat07 at gmail.com>:
> 
> ---
> 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 21ab36cf71..7bf7b7dcda 100644
> --- a/extras/package/macosx/package.mak
> +++ b/extras/package/macosx/package.mak
> @@ -43,7 +43,7 @@ endif
> 	mkdir -p $@/Contents/MacOS/include/
> 	(cd "$(prefix)/include" && $(AMTAR) -c --exclude "plugins" vlc) | $(AMTAR) -x -C $@/Contents/MacOS/include/
> 	## Copy translations
> -	cp -r "$(prefix)/share/locale" $@/Contents/MacOS/share/
> +	[ -d "$(prefix)/share/locale" ] && cp -r "$(prefix)/share/locale" $@/Contents/MacOS/share/ || true

I think the far easier way would be to prefix with ‚-', i.e.

-cp -r "$(prefix)/share/locale" $@/Contents/MacOS/share/

Why would share be ever empty, though?

> 	printf "APPLVLC#" >| $@/Contents/PkgInfo
> 	## Copy libs
> 	mkdir -p $@/Contents/MacOS/lib
> -- 
> 2.30.1
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list