X-Git-Url: https://iankelling.org/git/?p=iankelling.org;a=blobdiff_plain;f=build.rb;h=b1a3411b75c98b8bb86a939508373582c7b63327;hp=620fe89c345937dcec223e737a135069df2f7503;hb=34165b546bf7469aeb0e5bd6fdf3df6debdbbe3d;hpb=d668aa72f0503fe96aff5865215602e8f87e1a56;ds=sidebyside diff --git a/build.rb b/build.rb index 620fe89..b1a3411 100755 --- a/build.rb +++ b/build.rb @@ -80,7 +80,7 @@ EOF fskel('index.html', DN, File.read('../index.html')) stdpage('blog', < + EOF @@ -94,5 +94,13 @@ 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") + +ret = 0 +["main", "gitweb-site"].each do |basename| + cmd = "scss --force --cache-location ../.sass-cache" + unless system("#{cmd} ../css/#{basename}.scss css/#{basename}.css") + ret = 1 + end +end + +exit ret