Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Commit

Permalink
Use bitbucket and fix casper change branch
Browse files Browse the repository at this point in the history
Merges changes in #3, #4, #5
Thanks all

 Changes to be committed:
	modified:   bin/compile
  • Loading branch information
leesei committed Nov 17, 2014
1 parent 58991a1 commit 0d630ad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ BUILD_DIR=$1
CACHE_DIR=$2

# config
VERSION="1.9.7"
VERSION="1.9.8"
CASPER_VERSION="master"

# Buildpack URL
ARCHIVE_NAME=phantomjs-${VERSION}-linux-x86_64
FILE_NAME=${ARCHIVE_NAME}.tar.bz2
BUILDPACK_PHANTOMJS_PACKAGE=https://phantomjs.googlecode.com/files/${FILE_NAME}
#BUILDPACK_PHANTOMJS_PACKAGE=https://phantomjs.googlecode.com/files/${FILE_NAME}
BUILDPACK_PHANTOMJS_PACKAGE=https://bitbucket.org/ariya/phantomjs/downloads/${FILE_NAME}

mkdir -p $CACHE_DIR
if ! [ -e $CACHE_DIR/$FILE_NAME ]; then
Expand All @@ -25,12 +26,13 @@ fi
echo "-----> Extracting PhantomJS ${VERSION} binaries to ${BUILD_DIR}/vendor/phantomjs"
mkdir -p $CACHE_DIR/$ARCHIVE_NAME
mkdir -p $BUILD_DIR/vendor
tar jxf $CACHE_DIR/$FILE_NAME -C $CACHE_DIR
tar -xjf $CACHE_DIR/$FILE_NAME -C $CACHE_DIR
mv $CACHE_DIR/$ARCHIVE_NAME $BUILD_DIR/vendor/phantomjs

echo "-----> Cloning CasperJS"
cd ${BUILD_DIR}/vendor
git clone git://github.com/n1k0/casperjs.git
cd casperjs
git checkout ${CASPER_VERSION}

echo "-----> Installing .profile.d/casperjs.sh"
Expand Down

0 comments on commit 0d630ad

Please sign in to comment.