aboutsummaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorHaacked <haacked@gmail.com>2013-11-28 20:00:14 -0800
committerHaacked <haacked@gmail.com>2013-11-28 20:00:14 -0800
commit21d26da1b68a9b0d23bde874e113665ecff7b2ea (patch)
treebf6970b6f3bbd358081a43295d2f5fe4a6ce4443 /Rakefile
parentcf4af1d82551401e626ca28aa5f00e4b0821685e (diff)
downloadmy_new_personal_website-21d26da1b68a9b0d23bde874e113665ecff7b2ea.tar.xz
my_new_personal_website-21d26da1b68a9b0d23bde874e113665ecff7b2ea.zip
Add check for running on Windows
Diffstat (limited to '')
-rw-r--r--Rakefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 4f3360c4..ae280ff0 100644
--- a/Rakefile
+++ b/Rakefile
@@ -51,8 +51,10 @@ end
desc "Generate jekyll site"
task :generate do
raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir)
- puts '## Setting the codepage to 65001'
- `chcp 65001`
+ if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
+ puts '## Set the codepage to 65001 for Windows machines'
+ `chcp 65001`
+ end
puts "## Generating Site with Jekyll"
system "compass compile --css-dir #{source_dir}/stylesheets"
system "jekyll"