[gedit/wip/3.14-osx: 45/69] [osx] Warn about missing SDK
- From: Jesse van den Kieboom <jessevdk src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gedit/wip/3.14-osx: 45/69] [osx] Warn about missing SDK
 
- Date: Tue, 26 Aug 2014 16:51:29 +0000 (UTC)
 
commit 5039fb244376caf9f56c806f22c27524089a58da
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Mon Aug 25 10:22:27 2014 +0200
    [osx] Warn about missing SDK
 osx/build/build |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/osx/build/build b/osx/build/build
index cfaf34b..a6f2db6 100755
--- a/osx/build/build
+++ b/osx/build/build
@@ -35,6 +35,13 @@ if [ ! xcodebuild -version &>/dev/null ]; then
        do_exit "You need to have Xcode installed to build gedit for OS X"
 fi
 
+xcodebase=$(xcode-select -p)
+sdkdir="$xcodebase/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$GEDIT_SDK.sdk"
+
+if [ ! -d "$sdkdir" ]; then
+       do_exit "SDK base directory for $GEDIT_SDK not found. Please make sure to install the SDK at $sdkdir"
+fi
+
 function checkout_jhbuild() {
        #JHBUILD_REVISION=$(curl -ks "$GTK_OSX_BASE_URL/jhbuild-revision")
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]