[vlc-commits] macOS package: Preserve timestamps when copying VLC.app

David Fuhrmann git at videolan.org
Tue Jan 9 20:33:12 CET 2018


vlc/vlc-3.0 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Tue Jan  9 19:50:33 2018 +0100| [501627ee1e1c3244a5c0298e7a158daf42c932b5] | committer: David Fuhrmann

macOS package: Preserve timestamps when copying VLC.app

As the plugin cache requires matching timestamps, this avoids having
a stale cache later on.

refs #19448

(cherry picked from commit d2e72f14ea2eaea1ee51913315683a9dcad12323)
Signed-off-by: David Fuhrmann <dfuhrmann at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=501627ee1e1c3244a5c0298e7a158daf42c932b5
---

 extras/package/macosx/package.mak | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/extras/package/macosx/package.mak b/extras/package/macosx/package.mak
index 048a4f3840..4bbc8aef53 100644
--- a/extras/package/macosx/package.mak
+++ b/extras/package/macosx/package.mak
@@ -74,7 +74,7 @@ else !HAVE_DMGBUILD
 	## Create directory for DMG contents
 	mkdir -p "$(top_builddir)/vlc-$(VERSION)"
 	## Copy contents
-	cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"
+	cp -Rp "$(top_builddir)/VLC.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"
 	## Symlink to Applications so users can easily drag-and-drop the App to it
 	$(LN_S) -f /Applications "$(top_builddir)/vlc-$(VERSION)/"
 	## Create DMG
@@ -87,7 +87,7 @@ endif
 package-macosx-zip: VLC.app
 	rm -f "$(top_builddir)/vlc-$(VERSION).zip"
 	mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies/
-	cp -R $(top_builddir)/VLC.app $(top_builddir)/vlc-$(VERSION)/VLC.app
+	cp -Rp $(top_builddir)/VLC.app $(top_builddir)/vlc-$(VERSION)/VLC.app
 	cd $(srcdir); cp -R AUTHORS COPYING README THANKS NEWS $(abs_top_builddir)/vlc-$(VERSION)/Goodies/
 	zip -r -y -9 $(top_builddir)/vlc-$(VERSION).zip $(top_builddir)/vlc-$(VERSION)
 	rm -rf "$(top_builddir)/vlc-$(VERSION)"
@@ -95,7 +95,7 @@ package-macosx-zip: VLC.app
 package-macosx-release:
 	rm -f "$(top_builddir)/vlc-$(VERSION)-release.zip"
 	mkdir -p $(top_builddir)/vlc-$(VERSION)-release
-	cp -R $(top_builddir)/VLC.app $(top_builddir)/vlc-$(VERSION)-release/
+	cp -Rp $(top_builddir)/VLC.app $(top_builddir)/vlc-$(VERSION)-release/
 	cp $(srcdir)/extras/package/macosx/dmg/* $(top_builddir)/vlc-$(VERSION)-release/
 	cp "$(srcdir)/extras/package/macosx/codesign.sh" $(top_builddir)/vlc-$(VERSION)-release/
 	zip -r -y -9 $(top_builddir)/vlc-$(VERSION)-release.zip $(top_builddir)/vlc-$(VERSION)-release



More information about the vlc-commits mailing list