wfarr / wfarr.github.com

wfarr.github.com / rebuild.rb
100644 17 lines (13 sloc) 0.329 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/env ruby
 
haml = [ "404", "index", "atom", "tags", "_layouts/default", "_layouts/post" ]
sass = [ "css/main" ]
 
haml.each do |file|
  if file == "atom"
    system "haml #{file}.haml #{file}.xml"
  else
    system "haml #{file}.haml #{file}.html"
  end
end
 
sass.each do |file|
  system "sass #{file}.sass #{file}.css"
end