[darwinbuild-changes] [171] trunk/darwinbuild/darwinbuild
source_changes at macosforge.org
source_changes at macosforge.org
Wed Oct 4 01:53:49 PDT 2006
Revision: 171
http://trac.macosforge.org/projects/darwinbuild/changeset/171
Author: ssen
Date: 2006-10-04 01:53:49 -0700 (Wed, 04 Oct 2006)
Log Message:
-----------
Create a "-loadonly" option, which is like "-noload" except it's
the opposite. This is good when a project doesn't have accurate
dependencies and you want to load the build root "just like this
other project".
Modified Paths:
--------------
trunk/darwinbuild/darwinbuild
Modified: trunk/darwinbuild/darwinbuild
===================================================================
--- trunk/darwinbuild/darwinbuild 2005-08-10 02:56:22 UTC (rev 170)
+++ trunk/darwinbuild/darwinbuild 2006-10-04 08:53:49 UTC (rev 171)
@@ -102,6 +102,7 @@
CHROOTED="YES"
logdeps=""
noload=""
+loadonly=""
projnam=""
action="install"
target=""
@@ -165,7 +166,8 @@
function PrintUsage() {
echo "usage: $(basename $0) [flags] <project> [<version>]" 1>&2
echo "usage: flags: [-headers] [-build=X] [-target=X]" 1>&2
- echo " [-logdeps] [-nochroot] [-noload] [-depsbuild=X [-depsbuild=Y]]" 1>&2
+ echo " [-logdeps] [-nochroot] [-noload | -loadonly]" 1>&2
+ echo " [-depsbuild=X [-depsbuild=Y]]" 1>&2
echo " [-fetch] [-source]" 1>&2
exit 1
}
@@ -239,6 +241,8 @@
### -nochroot Do not chroot into the BuildRoot when building
### -noload Don't load dependencies into the chroot.
### Has no effect if -nochroot is specified.
+### -loadonly Only load dependencies into the chroot, but
+### don't build.
### -logdeps Do magic to log the build-time dependencies
### -target=X The makefile or xcode target to build
### -build=X X is the darwin build number to buld, e.g. 8B15
@@ -270,6 +274,8 @@
export CHROOTED="NO"
elif [ "$ARG" == "-noload" ]; then
noload="YES"
+ elif [ "$ARG" == "-loadonly" ]; then
+ loadonly="YES"
elif [ "$ARG" == "-logdeps" ]; then
logdeps="YES"
else
@@ -524,6 +530,11 @@
"$DATADIR/installXcodebuild" "$BuildRoot"
touch "$receipts/xcodebuild"
fi
+
+ if [ "$loadonly" = "YES" ]; then
+ exit
+ fi
+
fi
###
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/81308ab2/attachment.html
More information about the darwinbuild-changes
mailing list