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

git-admin at x2go.org git-admin at x2go.org
Wed Mar 4 22:15:00 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 782a0ad71a0f966bf70f5d99e3964626c4b27912
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 94e9f9f..ee299dd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -245,6 +245,8 @@ x2goclient (4.0.3.2-0x2go1) unstable; 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.
 
  -- X2Go Release Manager <git-admin at x2go.org>  Thu, 19 Feb 2015 12:49:22 +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/code.x2go.org/x2goclient.git//../..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list