• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Build Phase per Configuration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build Phase per Configuration


  • Subject: Re: Build Phase per Configuration
  • From: David Dunham <email@hidden>
  • Date: Tue, 13 Nov 2007 17:18:40 -0800

On 13 Nov 2007, at 15:47, Greg Guerin wrote:

David Dunham wrote:

Script-63A3409E0CE9325E00C7854A.sh: line 5: syntax error near unexpected
token `fi'
Script-63A3409E0CE9325E00C7854A.sh: line 5: `fi'

Try changing this: if [ $(CONFIGURATION) -eq "Release" ] then

to this:
  if [ "${CONFIGURATION}" = "Release" ] then

I.e. curly brackets instead of parens, double-quoted, and binary operator =.

Same error.

if [ "$CONFIGURATION" = "Release" ]; then

seemed to work (no curly braces, semicolon after the square bracket).

The -eq operator compares integer values. See 'man test'.

Of course. That's the obvious way to look up the "if" command.

Also make sure it's using the sh or bash shell, not csh or tcsh.

That much I figured, since my tcsh book has no "if" in the index. (I use tcsh as my standard shell, since that was an older Mac OS X default that I stuck with.)


David Dunham A Sharp, LLC
Voice/Fax: 206 783 7404 http://a-sharp.com
"People seem to misinterpret complexity as sophistication" -- Niklaus Wirth



_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Build Phase per Configuration (From: Greg Guerin <email@hidden>)

  • Prev by Date: Re: Build Phase per Configuration
  • Next by Date: Re: Build Phase per Configuration
  • Previous by thread: Re: Build Phase per Configuration
  • Next by thread: Codewarrior compiles fail
  • Index(es):
    • Date
    • Thread