2012-06-18 02:39:32 +04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
apt-get update
|
|
|
|
apt-get install -y build-essential git-core libssl-dev libfontconfig1-dev gdb binutils-gold
|
|
|
|
|
|
|
|
if [[ ! -d phantomjs ]]; then
|
|
|
|
git clone git://github.com/ariya/phantomjs.git
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd phantomjs
|
|
|
|
git fetch origin
|
2012-06-20 02:19:49 +04:00
|
|
|
git reset --hard
|
2012-06-18 02:39:32 +04:00
|
|
|
git checkout $1
|
|
|
|
|
|
|
|
cp /vagrant/build-and-package.sh deploy/
|
2012-06-20 02:19:49 +04:00
|
|
|
cp /vagrant/package.sh deploy/
|
2012-06-18 02:39:32 +04:00
|
|
|
|
|
|
|
deploy/build-and-package.sh
|
|
|
|
|
|
|
|
cp deploy/*.tar.bz2 /vagrant
|