• 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: Strip not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strip not working


  • Subject: Re: Strip not working
  • From: Derek Wyatt <email@hidden>
  • Date: Sun, 10 Dec 2006 12:08:46 -0500


On 10-Dec-06, at 10:47 AM, James Bucanek wrote:

Trygve Inda wrote on Sunday, December 10, 2006:
I have to add a Build Phase script:

#!/bin/bash
strip "$TARGET_BUILD_DIR/$EXECUTABLE_PATH"

The '#!/bin/bash' line is redundant (but harmless). A "she-bang" line is automatically pre-pended to your script using the contents of the Shell field of the script phase info. If you really require bash, make sure this is set to /bin/bash.

I haven't contributed at all to this list as I'm still a lurking newbie, but I just have to pipe up here. It's not remotely redundant. It's a great habit to get into and the fact *nix kernels have this default behaviour just makes bad habits. If someone gets the idea that it's redundant and starts writing scripts for "the world" to use and someone in that world has their shell as CSH or SH then they're going to find that the script doesn't work. And if they're a newbie, they're not going to know why.


So, please, for the sake of the rest of the world, please include the sharp-bang.

Regs,
Derek

_______________________________________________
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


  • Follow-Ups:
    • Re: Strip not working
      • From: Chris Espinosa <email@hidden>
References: 
 >Re: Strip not working (From: James Bucanek <email@hidden>)

  • Prev by Date: Re: Spurious long double accuracy
  • Next by Date: Re: Spurious long double accuracy
  • Previous by thread: Re: Strip not working
  • Next by thread: Re: Strip not working
  • Index(es):
    • Date
    • Thread