Skip to content

Commit

Permalink
Merge pull request #3 from gabebw/master
Browse files Browse the repository at this point in the history
Various improvements
  • Loading branch information
Mark Pundsack committed Oct 24, 2012
2 parents 9cedb54 + e13a76a commit ec07786
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,28 @@ indent() {
sed -u 's/^/ /'
}

echo "-----> Compiling Jekyll site"

# Install Jekyll into hidden directory in app roote
message() {
echo "-----> $*"
}

# Install Jekyll into APP_ROOT/.gems
cat << EOF > ~/.gemrc
gemhome: $1/.gems
gempath:
- $1/.gems
EOF

/usr/local/bin/gem install jekyll RedCloth --no-rdoc --no-ri | indent
message "Installing jekyll version 0.11.2"
/usr/local/bin/gem install jekyll -v 0.11.2 --no-rdoc --no-ri | indent

message "Installing Liquid version 2.2.2"
/usr/local/bin/gem install liquid -v 2.2.2 --no-rdoc --no-ri | indent

# Run Jekyll
echo "Running Jekyll" | indent
message "Setting environment variables"
export GEM_HOME=$1/.gems
export PATH=$1/.gems/bin:$PATH
export LC_ALL=en_US.UTF8
cd $1
$1/.gems/bin/jekyll | indent
message "Compiling Jekyll site"
$1/.gems/bin/jekyll --no-auto --no-server --no-lsi --safe | indent

0 comments on commit ec07786

Please sign in to comment.