You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2012/07/30 21:58:36 UTC

[14/15] ios commit: [CB-1091] Added check for if xcode is running, and throw error if it is.

[CB-1091] Added check for if xcode is running, and throw error if it is.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/8ba8bc1a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/8ba8bc1a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/8ba8bc1a

Branch: refs/heads/master
Commit: 8ba8bc1acb8f2854f7cb88dd11b832e9cdab310f
Parents: b464e4c
Author: Fil Maj <ma...@gmail.com>
Authored: Wed Jul 25 11:55:32 2012 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Wed Jul 25 11:55:32 2012 -0700

----------------------------------------------------------------------
 Makefile |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/8ba8bc1a/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index e0dbe7e..1ae43f9 100644
--- a/Makefile
+++ b/Makefile
@@ -91,6 +91,9 @@ check-utils:
 		fi
 		@echo -e "Xcode.app: \t\t\033[33m$(XC_APP)\033[m";
 		@echo -e "Using Developer folder: \033[33m$(DEVELOPER)\033[m";
+		@if [ -n "$(shell ps aux | grep -i "Xcode.app/Contents/MacOS/Xcode" | grep -v grep)" ]; then \
+			  echo -e "\033[31mError: Xcode is running! Please close Xcode and try again.\033[m" ; exit 1; \
+		fi
 
 install: check-utils clean update-template
 		@defaults write org.apache.cordovalib InstallLocation "$(CORDOVA_LIB)"