From c1871d16306dcb56d84582144a97ce51e040001d Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 4 Oct 2016 10:14:40 -0700 Subject: [PATCH] faster, cleaner sass generation --- build.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.rb b/build.rb index 370047f..65264b6 100755 --- 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 -- 2.30.2