[from now] 2013/05/24 10:47:27

diff --git a/bin/compile b/bin/compile
index 480b718..517f27a 100755
--- a/bin/compile
+++ b/bin/compile
@@ -1,13 +1,16 @@
 #!/bin/sh

-SED="sed -u"
 GEM="/usr/local/bin/gem"

 export LANG=en_US.UTF-8
 export GEM_HOME=$1/.gems

 indent() {
-  $SED 's/^/       /'
+  c='s/^/       /'
+  case $(uname) in
+    Darwin) sed -l "$c";;
+    *)      sed -u "$c";;
+  esac
 }

 message() {
@@ -25,8 +28,11 @@ message "Installing bundler"
 $GEM install bundler --no-rdoc --no-ri | indent

 message "Installing gems"
-$GEM_HOME/bin/bundle install --path vendor/bundle | indent
+$GEM install jekyll --no-rdoc --no-ri | indent
+$GEM install jekyll-less --no-rdoc --no-ri | indent
+$GEM install therubyracer --no-rdoc --no-ri | indent
+$GEM install redcarpet --no-rdoc --no-ri | indent

 message "Building site"
-$GEM_HOME/bin/bundle exec jekyll build | indent
+$GEM_HOME/bin/jekyll build | indent