[X2Go-Commits] [x2goclient] 02/07: macbuild.sh: use sh default assignment instead of default value.

git-admin at x2go.org git-admin at x2go.org
Wed Feb 18 03:40:36 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 fc2b2d0f6ecc94b532cdcafdec7e7e6a01cceadc
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Wed Feb 18 03:06:21 2015 +0100

    macbuild.sh: use sh default assignment instead of default value.
    
    Removes the need to redundantly specify the variable name.
---
 debian/changelog |    2 ++
 macbuild.sh      |    8 ++++----
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b84512e..03dff24 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -221,6 +221,8 @@ x2goclient (4.0.3.2-0x2go1) UNRELEASED; urgency=medium
     - Remove config_mac.sh. macbuild.sh handles this now.
     - Use the correct client build dir in macbuild.sh: client_build.
     - Only use --stdlib compiler flag on 10.7+. Unsupported on 10.6 and below.
+    - Use sh default assignment instead of default value in macbuild.sh.
+      Removes the need to redundantly specify the variable name.
 
  -- 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 35bdb48..aedcabe 100755
--- a/macbuild.sh
+++ b/macbuild.sh
@@ -11,10 +11,10 @@ PKG_DMG="${TOP_DIR}/pkg-dmg"
 
 NXPROXY="$(which nxproxy)"
 
-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"}"
-BUNDLE="${BUNDLE:-"1"}"
+: ${SDK:="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"}
+: ${MACOSX_DEPLOYMENT_TARGET:="10.7"}
+: ${DEBUG:="0"}
+: ${BUNDLE:="1"}
 
 case "${DEBUG}" in
 	("0"|"no"|""|"No"|"nO"|"NO"|"false"|"FALSE") BUILD_MODE="release";;

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


More information about the x2go-commits mailing list