A set of helper scripts for building and packaging Swift on Ubuntu Linux
See companion instructions at https://dev.iachieved.it/iachievedit/keeping-up-with-open-source-swift/
Before executing any scripts will you want to have all of the build prerequisites installed:
sudo apt-get install git cmake ninja-build clang uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config autoconf libtool systemtap-sdt-dev libcurl4-openssl-dev
Note: For those building on Ubuntu 14.04, you will need to upgrade your cmake
to 3.4.3 by hand. See our companion post here: https://dev.iachieved.it/iachievedit/upgrading-cmake-for-a-happier-swift-build/.
Usage:
./get.sh to initially populate the directory with the Swift repositories from Github
./package.sh to build and package everything
./update.sh to refresh your source code with the latest from Github
./clean.sh to delete the build and install directory
./distclean.sh to delete everything except the helper scripts
Internally I use packagedeb.sh
to create an Debian package for
distribution via a repository and apt-get
.
The Swift continuous integration build server hosts packaging jobs that build and package all of the Swift components for OS X, Ubuntu 14.04, and Ubuntu 15.10. If the package.sh
script in this repository fails you may want to look at the current status of the canonical builds: