[darwinbuild-changes] [129] trunk/darwinbuild/darwinbuild
source_changes at macosforge.org
source_changes at macosforge.org
Wed Oct 4 01:49:10 PDT 2006
Revision: 129
http://trac.macosforge.org/projects/darwinbuild/changeset/129
Author: ssen
Date: 2006-10-04 01:49:10 -0700 (Wed, 04 Oct 2006)
Log Message:
-----------
Add a "-source" option, similar to DP's "port patch", which will
fetch all necessary files, extract them in the build root, and
apply necessary patches
Modified Paths:
--------------
trunk/darwinbuild/darwinbuild
Modified: trunk/darwinbuild/darwinbuild
===================================================================
--- trunk/darwinbuild/darwinbuild 2005-07-30 08:04:50 UTC (rev 128)
+++ trunk/darwinbuild/darwinbuild 2006-10-04 08:49:10 UTC (rev 129)
@@ -154,6 +154,7 @@
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]" 1>&2
+ echo " [-fetch] [-source]" 1>&2
exit 1
}
@@ -221,6 +222,8 @@
###
### Interpret our arguments:
### -headers Do the installhdrs phase, instead of install
+### -fetch Download necessary source and patch files
+### -source Extract, patch, and stage source
### -nochroot Do not chroot into the BuildRoot when building
### -noload Don't load dependencies into the chroot.
### Has no effect if -nochroot is specified.
@@ -243,6 +246,8 @@
action="installhdrs"
elif [ "$ARG" == "-fetch" ]; then
action="fetch"
+ elif [ "$ARG" == "-source" ]; then
+ action="source"
elif [ "${ARG/=*/}" == "-target" ]; then
target="${ARG/*=/}"
elif [ "${ARG/=*/}" == "-build" ]; then
@@ -421,6 +426,11 @@
cat $REAL_SRCROOT/../$project-patches/* | patch -p0
fi
+### If we are doing a -source, stop here.
+if [ "$action" == "source" ]; then
+ exit
+fi
+
###
### Look for the build tool: make, xcodebuild
###
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/d5509210/attachment-0001.html
More information about the darwinbuild-changes
mailing list