emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/company 7c25307 4/7: Fix Darwin compatibility of 'make


From: ELPA Syncer
Subject: [elpa] externals/company 7c25307 4/7: Fix Darwin compatibility of 'make package'
Date: Thu, 30 Sep 2021 16:57:08 -0400 (EDT)

branch: externals/company
commit 7c253070417dd1cf011339c6b64597486bb054c8
Author: YE <yet@ego.team>
Commit: YE <yet@ego.team>

    Fix Darwin compatibility of 'make package'
---
 Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 7dce400..d3b5855 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,13 @@
 EMACS = emacs
+
 ALL_TARGETS = help package clean test test-gui test-batch compile compile-warn
 
+TAR_OPTIONS = cjvf
+ifneq ($(shell uname -s), Darwin)
+       TAR_OPTIONS += --mode 644
+endif
+
+
 .PHONY: ${ALL_TARGETS}
 
 help:
@@ -9,7 +16,7 @@ help:
 
 package: *.el
        @ver=`grep -o "Version: .*" company.el | cut -c 10-`; \
-       tar cjvf company-$$ver.tar.bz2 --mode 644 $$(find . -name \*.el)
+       tar ${TAR_OPTIONS} company-$$ver.tar.bz2 $$(find . -name \*.el)
 
 clean:
        @rm -rf company-*/ company-*.tar.bz2 *.elc ert.el test/*.elc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]