Re: Run Script Build Phase & Linking
Re: Run Script Build Phase & Linking
- Subject: Re: Run Script Build Phase & Linking
- From: David Dolinar <email@hidden>
- Date: Wed, 4 Jan 2006 15:38:44 -0700
On Jan 4, 2006, at 3:28 PM, Fritz Anderson wrote:
This doesn't directly answer your question, and perhaps I do not
fully understand what your script does but isn't
elsif (File.stat(source_file).mtime != File.stat(dest_file).mtime)
going to evaluate as true even if dest_file is up-to-date? You take
special trouble to set the dest_file's mtime to 1 + the
source_file's mtime.
Fritz,
Right, we do take the special trouble of setting the dest_file's
mtime to +1. However from the XCode Documentation we have:
file:///Developer/ADC Reference Library/documentation/
DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/
05_03_bs_build_phases/chapter_30_section_9.html
"Xcode uses the input and output files to determine whether to run
the script and to determine the order in which the script is
executed. Specifying input and output files ensures that Xcode runs
the script only when the modification date of any of the input files
is later than the modification date of any of the output files
(reducing the time it takes to build your product), and that the
files the script produces are included in the dependency analysis the
build system performs before building your product. If you provide no
outputs, Xcode runs the script every time you build the target."
So, shouldn't that guarantee that the script will only be run once
(after an update from the repository)?
I've also tried removing the +1 & that doesn't seem to help.
-- David Dolinar, Software Developer
-- Directory Resources, LLC
_______________________________________________
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