• 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: Xcode 1.5 Release - Shell script phase
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 1.5 Release - Shell script phase


  • Subject: Re: Xcode 1.5 Release - Shell script phase
  • From: Michael Rawdon <email@hidden>
  • Date: Fri, 13 Aug 2004 15:51:35 -0700

Hi Romain -

On Aug 13, 2004, at 2:02 PM, Romain Brestac wrote:
> xcode 1.5 release notes say:
>
> Now a shell script build phase can access its input and output files:
> SCRIPT_INPUT_FILE_[0...]
>
> I would like to know what is the 0 in [0...] . File index in the list ?

Yeah.

> What does mean "..." ? series of comma separated values ?

No.  IIRC, it will pass SCRIPT_INPUT_FILE_0, SCRIPT_INPUT_FILE_1, etc.
So you can iterate over the integers in your script until you encounter
a variable which isn't set.

We didn't want to pass all the files in a single variable because it's
hard to choose a separator that wouldn't get in someone's way at some
point.  That, plus parsing strings in the shell can be a pain
sometimes.

BTW, one way to gain insight into what script phases are doing is to
look at the list of environment variables set in the phase.  You can
either call 'set' or 'printenv' in the script itself, or Xcode echoes
the list it sets to the detailed build log.

--
Michael Rawdon					Apple Computer, Cupertino CA
Xcode Developer					email@hidden

Transported to a surreal landscape, a young girl kills the first woman
she meets, then teams up with three complete strangers to kill again.
                 - TV listing for The Wizard of Oz in the Marin Paper
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Xcode 1.5 Release (From: Rob Lockstone <email@hidden>)
 >Re: Xcode 1.5 Release - Shell script phase (From: Romain Brestac <email@hidden>)

  • Prev by Date: Re: C++
  • Next by Date: Re: How to get rid IB warning about "pre-10.2 nib file format"?
  • Previous by thread: Re: Xcode 1.5 Release - Shell script phase
  • Next by thread: Xcode 1.5 fixes debugger bug
  • Index(es):
    • Date
    • Thread