From bdd088f551681d746c623ec69aa9bf24d863d1f9 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Mon, 12 Sep 2016 00:08:01 -0400
Subject: [PATCH] start revising tar_em_up.sh to work with osx

---
 l2ork_addons/tar_em_up.sh | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/l2ork_addons/tar_em_up.sh b/l2ork_addons/tar_em_up.sh
index e2ac9d7f2..3f4d9f44f 100755
--- a/l2ork_addons/tar_em_up.sh
+++ b/l2ork_addons/tar_em_up.sh
@@ -49,6 +49,9 @@ os=`uname | tr '[:upper:]' '[:lower:]'`
 if [[ $os == *"mingw32"* ]]; then
 	os=win
 fi
+if [[ $os == "darwin" ]]; then
+	os=osx
+fi
 
 # Fetch the nw.js binary if we haven't already. We want to fetch it even
 # for building with no libs, so we do it before all options
@@ -65,13 +68,17 @@ if [ ! -d "../pd/nw/nw" ]; then
 		arch="armv7l"
 	fi
 
-	if [[ $os == "win" ]]; then
+	if [[ $os == "win" || $os == "osx" ]]; then
 		ext="zip"
+	else
+		ext="tar.gz"
+	fi
+
+	if [[ $os == "win" ]]; then
 		# We need the lts version to be able to run on XP. For
                 # simplicity we use that same version for 64 bit Windows, too
 		nwjs_version="v0.14.7"
 	else
-		ext="tar.gz"
 		# temporary kluge for rpi-- only 0.15.1 is available atm
 		if [ `uname -m` == "armv7l" ]; then
 			nwjs_version="v0.15.1"
-- 
GitLab