3 # This script needs to be run with root rights.
4 if [ $UID -ne 0 ]; then
9 function printNotSupportedMessageAndExit() {
11 echo "Currently this script only works for distributions supporting apt-get."
12 echo "Please add support for your distribution."
17 function checkCmakeVersion() {
18 CMAKE_VERSION=`cmake --version`
20 VERSION=`echo "$CMAKE_VERSION" | awk '{split($3,num,".");
21 if (!(num[1]>2 || num[2]>8 || num[3]>=10))
24 if [ -n "${VERSION}" ]; then
25 echo "Warning: CMake version detected (${VERSION}) is lower then 2.8.10."
26 echo " This will probably cause errors, as older version didn't support CMAKE_NINJA_FORCE_RESPONSE_FILE,"
27 echo " which is needed now for building. (look at: https://lists.webkit.org/pipermail/webkit-gtk/2014-March/001809.html )"
30 if [ -f "/etc/issue" ]; then
31 ubuntu_version=`cat /etc/issue`
32 if [[ $ubuntu_version == *Ubuntu\ 12.04* ]]; then
33 echo " For Ubuntu 12.04 or 12.10 You might consider adding ppa from https://launchpad.net/~kalakris/+archive/ubuntu/cmake"
39 function checkInstaller {
40 # apt-get - Debian based distributions
41 apt-get --version &> /dev/null
43 installDependenciesWithApt
48 printNotSupportedMessageAndExit
51 function installDependenciesWithApt {
52 # These are dependencies necessary for building WebKitEFL.
106 # These are dependencies necessary for building WebKitEFL and not available on ARM64.
110 # These are dependencies necessary for running tests.
113 libapache2-mod-php5 \