Skip to content
Permalink
Browse files

Copy over pbx_jamfiles, and redirect /Developer into /XCD.

It should be noted that since sed is operating on the archive
stream, it substitutes both the file paths that are used
for unarchiving and the content that is unarchived. In this
case, DevToolsCore.framework now looks in /XCD/loper/Makefiles/pbx_jamfiles
for the Jambase, which has had substitutions done to fine other
Xcode components in /XCD. This is a HUGE hammer, and projects
that use $(SYSTEM_LIBRARY_DIR) in their project files will be
broken. Need to iterate on this a bit.

git-svn-id: https://svn.macosforge.org/repository/darwinbuild/trunk@153 10a61168-4876-4dac-953b-31e694342555
  • Loading branch information
shantonusen committed Aug 4, 2005
1 parent b4db98f commit 76cdfc2674f3ce5796196bcb9290d130a7ab2f40
Showing with 6 additions and 4 deletions.
  1. +6 −4 darwinbuild/installXcodebuild
@@ -12,6 +12,7 @@ EXTRACOPY=( \
/Developer/Private \
/Developer/Tools \
/usr/bin/xcodebuild \
/Developer/Makefiles/pbx_jamfiles \
/Library/Application\ Support/Xcode)

if [ -z "$BUILDROOT" ]; then
@@ -89,12 +90,13 @@ GenerateFileNames() {
}

CopyFiles() {
VERBOSECPIO=""
echo -n "Copying Xcode and dependencies ..."
cpio -o -c < /tmp/installXcode.files.$$ | \
sed -e 's,/System/Library/Frameworks,/XCD/SY/Library/Frameworks,g' \
-e 's,/System/Library/PrivateFrameworks,/XCD/SY/Library/PrivateFrameworks,g' \
-e 's,/usr/lib,/XCD/lib,g' | \
(cd "$BUILDROOT"; cpio -imvd )
sed -e 's,/System,/XCD/SY,g' \
-e 's,/usr/lib,/XCD/lib,g' \
-e 's,/Developer,/XCD/loper,g' | \
(cd "$BUILDROOT"; cpio -im${VERBOSECPIO}d )

echo "done"
}

0 comments on commit 76cdfc2

Please sign in to comment.
You can’t perform that action at this time.