From b267a3017a86a5de4c5b0820cdbdd3935c0049c6 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Wed, 3 Jan 2018 12:39:45 +0200 Subject: [PATCH] raw dev script for iOS --- scripts/run-ios.sh | 80 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100755 scripts/run-ios.sh diff --git a/scripts/run-ios.sh b/scripts/run-ios.sh new file mode 100755 index 0000000000..488cdbead3 --- /dev/null +++ b/scripts/run-ios.sh @@ -0,0 +1,80 @@ +#!/bin/sh + +[ `uname -s` != "Darwin" ] && return + +function tab () { + local cmd="" + local cdto="$PWD" + local args="$@" + + if [ -d "$1" ]; then + cdto=`cd "$1"; pwd` + args="${@:2}" + fi + + if [ -n "$args" ]; then + cmd="; $args" + fi + + iterm_exists=`osascript -e "id of application \"iterm2\""` + if [ ! -z iterm_exists ]; then + osascript &>/dev/null </dev/null <