[Scummvm-git-logs] scummvm master -> ad42ff82d3a49f0054d127ea1208ab3b6ad7dcbe

dwatteau noreply at scummvm.org
Wed Apr 12 13:59:30 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
ad42ff82d3 BUILD: MACOS: Fix/simplify the `xattr` check for older OSX


Commit: ad42ff82d3a49f0054d127ea1208ab3b6ad7dcbe
    https://github.com/scummvm/scummvm/commit/ad42ff82d3a49f0054d127ea1208ab3b6ad7dcbe
Author: dwa (contrib at dwatteau.fr)
Date: 2023-04-12T15:59:26+02:00

Commit Message:
BUILD: MACOS: Fix/simplify the `xattr` check for older OSX

Just reuse the MACOSX_LEOPARD_OR_BELOW define, since TextEdit isn't able
to make anything out of this attribute on Leopard or below anyway.

Fixes a GNU make mistake of mine in commit
cdbdb58e07cc2235cd24ce2d6e8ea515938fdd93.

Changed paths:
    ports.mk


diff --git a/ports.mk b/ports.mk
index 45aa82bcbaf..991c02fedec 100644
--- a/ports.mk
+++ b/ports.mk
@@ -608,7 +608,9 @@ osxsnap: bundle
 	cp $(DIST_FILES_DOCS_se) ./ScummVM-snapshot/doc/se/
 	$(XCODETOOLSPATH)/SetFile -t ttro -c ttxt ./ScummVM-snapshot/doc/QuickStart
 	$(XCODETOOLSPATH)/SetFile -t ttro -c ttxt ./ScummVM-snapshot/doc/*/*
-	command -v xattr >/dev/null 2>&1 && xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/*/*
+ifndef MACOSX_LEOPARD_OR_BELOW
+	xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/*/*
+endif
 	cp -RP $(bundle_name) ./ScummVM-snapshot/
 	cp $(srcdir)/dists/macosx/DS_Store ./ScummVM-snapshot/.DS_Store
 	cp $(srcdir)/dists/macosx/background.jpg ./ScummVM-snapshot/background.jpg




More information about the Scummvm-git-logs mailing list