[X2Go-Commits] [x2goclient] 03/04: macbuild.sh: add debug mode selector via DEBUG env variable.

git-admin at x2go.org git-admin at x2go.org
Mon Feb 16 03:12:15 CET 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/cleanup
in repository x2goclient.

commit 303e367e592a412d2a69016f4ac05c5a9e165418
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon Feb 16 00:37:53 2015 +0100

    macbuild.sh: add debug mode selector via DEBUG env variable.
---
 debian/changelog |    1 +
 macbuild.sh      |    8 +++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 8c167fa..1c9207c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -203,6 +203,7 @@ x2goclient (4.0.3.2-0x2go1) UNRELEASED; urgency=medium
       references.
     - Move res/Info.plist and macdmg.DS_Store to res/osxbundle/ and update
       references in x2goclient.pro and macbuild.sh.
+    - Add debug mode selector via DEBUG env variable to macbuild.sh.
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Thu, 27 Nov 2014 12:01:43 +0100
 
diff --git a/macbuild.sh b/macbuild.sh
index 422a250..a02e3cb 100755
--- a/macbuild.sh
+++ b/macbuild.sh
@@ -15,6 +15,12 @@ LIBZ="libz.1.dylib"
 
 : SDK="${SDK:-"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"}"
 : MACOSX_DEPLOYMENT_TARGET="${MACOSX_DEPLOYMENT_TARGET:-"10.7"}"
+: DEBUG="${DEBUG:-"0"}"
+
+case "${DEBUG}" in
+	("0"|"no"|""|"No"|"nO"|"NO") BUILD_MODE="release";;
+	(*) BUILD_MODE="debug";;
+esac
 
 set -e
 
@@ -40,7 +46,7 @@ phase "Running lrelease"
 lrelease "${PROJECT}"
 
 phase "Running qmake"
-qmake -config release -spec macx-g++ "${PROJECT}" \
+qmake -config "${BUILD_MODE}" -spec macx-g++ "${PROJECT}" \
 	CONFIG+="x86_64" \
 	QMAKE_MAC_SDK="${SDK}" \
 	QMAKE_MACOSX_DEPLOYMENT_TARGET="${MACOSX_DEPLOYMENT_TARGET}"

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list