remove dependency on my bashrc
[iankelling.org] / build.rb
index 370047f651db343069a2a5ad2c02253a90f33476..b1a3411b75c98b8bb86a939508373582c7b63327 100755 (executable)
--- a/build.rb
+++ b/build.rb
@@ -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.
 # 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