Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 29 lines (24 sloc) 0.718 kb
#!/bin/bash
echo "Configuring HammerJS..."
CMAKE=$(command -v cmake)
if [ -z "$CMAKE" ]; then
ABSPATH="$( cd "$( dirname "$0" )" && pwd )"
CMAKE=$ABSPATH/bin/cmake
if [ ! -f $CMAKE ]; then
echo "Building CMake..."
CMAKE_VERSION=cmake-2.8.4
CMAKE_TARBALL=$CMAKE_VERSION.tar.gz
CMAKE_URL=http://www.cmake.org/files/v2.8/$CMAKE_TARBALL
[ -d cmake ] || mkdir cmake
cd cmake
[ -f $CMAKE_TARBALL ] || curl -C - -O -S $CMAKE_URL
tar xf $CMAKE_TARBALL
cd $CMAKE_VERSION
./bootstrap --prefix=$ABSPATH
make && make install
echo "Local CMake is installed to $ABSPATH."
cd .. && cd .. && echo "CMake build is completed."
fi
fi
$CMAKE .
echo "Configuration is done."
Jump to Line
Something went wrong with that request. Please try again.