faster, cleaner sass generation
authorIan Kelling <ian@iankelling.org>
Tue, 4 Oct 2016 17:14:40 +0000 (10:14 -0700)
committerIan Kelling <ian@iankelling.org>
Tue, 4 Oct 2016 17:14:40 +0000 (10:14 -0700)
build.rb

index 370047f651db343069a2a5ad2c02253a90f33476..65264b68f5f99da34724f0beb01de08bedb267aa 100755 (executable)
--- a/build.rb
+++ b/build.rb
@@ -94,5 +94,7 @@ stdpage('favorite-things', File.read('../favorite-things.html'))
 # we could use ruby native stuff here, but this was
 # better documented so meh.
 # Force because it's cache is not perfect, it definitely misses renamed symlinks.
-# This creates a few extra files, but oh well.
-system("scss --force --cache-location ../.sass-cache --update ../css:css")
+["main", "gitweb-site"].each do |basename|
+  cmd = "scss --force --cache-location ../.sass-cache"
+  system("#{cmd} ../css/#{basename}.scss css/#{basename}.css")
+end