Commit d2e72f14 authored by David Fuhrmann's avatar David Fuhrmann

macOS package: Preserve timestamps when copying

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

refs #19448
parent 7f9d0a2d
......@@ -74,7 +74,7 @@ else !HAVE_DMGBUILD
## Create directory for DMG contents
mkdir -p "$(top_builddir)/vlc-$(VERSION)"
## Copy contents
cp -R "$(top_builddir)/" "$(top_builddir)/vlc-$(VERSION)/"
cp -Rp "$(top_builddir)/" "$(top_builddir)/vlc-$(VERSION)/"
## 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
rm -f "$(top_builddir)/vlc-$(VERSION).zip"
mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies/
cp -R $(top_builddir)/ $(top_builddir)/vlc-$(VERSION)/
cp -Rp $(top_builddir)/ $(top_builddir)/vlc-$(VERSION)/
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:
rm -f "$(top_builddir)/vlc-$(VERSION)"
mkdir -p $(top_builddir)/vlc-$(VERSION)-release
cp -R $(top_builddir)/ $(top_builddir)/vlc-$(VERSION)-release/
cp -Rp $(top_builddir)/ $(top_builddir)/vlc-$(VERSION)-release/
cp $(srcdir)/extras/package/macosx/dmg/* $(top_builddir)/vlc-$(VERSION)-release/
cp "$(srcdir)/extras/package/macosx/" $(top_builddir)/vlc-$(VERSION)-release/
zip -r -y -9 $(top_builddir)/vlc-$(VERSION) $(top_builddir)/vlc-$(VERSION)-release
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment