mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
buildbot: Deliver built packages.
Copy the built package to a directory we can serve up via SFTP. Swift SVN r4261
This commit is contained in:
@@ -23,7 +23,7 @@ else
|
|||||||
PACKAGE=
|
PACKAGE=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set these to the paths of the OS X SDK and toolchain
|
# Set these to the paths of the OS X SDK and toolchain.
|
||||||
SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
|
SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
|
||||||
TOOLCHAIN=/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain
|
TOOLCHAIN=/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain
|
||||||
|
|
||||||
@@ -33,6 +33,9 @@ CMAKE=/usr/local/bin/cmake
|
|||||||
# Set this to the install prefix for release builds.
|
# Set this to the install prefix for release builds.
|
||||||
INSTALL_PREFIX=/usr/local
|
INSTALL_PREFIX=/usr/local
|
||||||
|
|
||||||
|
# Set this to the path on matte to which release packages should be delivered.
|
||||||
|
PACKAGE_PATH=/Users/Shared/swift-discuss
|
||||||
|
|
||||||
# Make sure the variables and directories we expect to exist actually do.
|
# Make sure the variables and directories we expect to exist actually do.
|
||||||
test "$WORKSPACE"
|
test "$WORKSPACE"
|
||||||
test -d "$WORKSPACE"
|
test -d "$WORKSPACE"
|
||||||
@@ -104,4 +107,20 @@ if [ "$PACKAGE" -a \! "$SKIP_PACKAGE_SWIFT" ]; then
|
|||||||
echo "--- Building Swift Package ---"
|
echo "--- Building Swift Package ---"
|
||||||
(cd "$WORKSPACE/swift/build" &&
|
(cd "$WORKSPACE/swift/build" &&
|
||||||
make -j package) || exit 1
|
make -j package) || exit 1
|
||||||
|
|
||||||
|
saw_package=
|
||||||
|
for package in "$WORKSPACE/swift/build/swift-*.tar.gz"; do
|
||||||
|
if [ "$saw_package" ]; then
|
||||||
|
echo "More than one package file built!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
saw_package=1
|
||||||
|
echo "--- Delivering $package ---"
|
||||||
|
cp "$package" "$PACKAGE_PATH" || exit 1
|
||||||
|
|
||||||
|
if [ \! "$saw_package" ]; then
|
||||||
|
echo "No package file built!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user