[darwinbuild] proposed modification to InstallHeader() behavior
I'd like to modify the InstallHeader() behavior so that installhdrs done locally will get loaded into the BuildRoot if they're newer than what's already in there. Presently InstallHeaders does not let you "downgrade" from a full root to a headers root. The new logic should read as follows: 1) Install a self-built headers root if newer than headers or full root in BuildRoot else 2) Install a self-built full root if newer than headers or full root in BuildRoot else 3) Install a pre-built headers root if nothing installed in BuildRoot else 4) Install a pre-built full root if no pre-built headers root was found Since I didn't want to break anyone else's installation, I've attached a patch for review. It seems to be working fine on my system. Thanks, - Kevin
Hmm found a bug, change from: if [ $InstallSelfBuiltHeader -eq 0 ]; then to: if [ $InstallSelfBuiltHeader -eq 0 -a -n "$SelfBuiltRoot" ]; then - Kevin On Sep 26, 2005, at 5:08 PM, Kevin Van Vechten wrote:
I'd like to modify the InstallHeader() behavior so that installhdrs done locally will get loaded into the BuildRoot if they're newer than what's already in there. Presently InstallHeaders does not let you "downgrade" from a full root to a headers root.
The new logic should read as follows:
1) Install a self-built headers root if newer than headers or full root in BuildRoot else 2) Install a self-built full root if newer than headers or full root in BuildRoot else 3) Install a pre-built headers root if nothing installed in BuildRoot else 4) Install a pre-built full root if no pre-built headers root was found
Since I didn't want to break anyone else's installation, I've attached a patch for review. It seems to be working fine on my system.
Thanks,
- Kevin
<darwinbuild.common.patch> _______________________________________________ darwinbuild mailing list darwinbuild@opendarwin.org http://www.opendarwin.org/mailman/listinfo/darwinbuild
participants (1)
-
Kevin Van Vechten