Add check for running on Windows
This commit is contained in:
parent
cf4af1d825
commit
21d26da1b6
4
Rakefile
4
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'
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user