X-Git-Url: https://iankelling.org/git/?p=iankelling.org;a=blobdiff_plain;f=build.rb;h=d16f7da91b7beeee11de976b390d3c5dbd986466;hp=f724fe92ca4e28a343ab2efb3a60c4788e0b21ef;hb=7c4081c2716a935c0e5a618dfed4cf16500bdec1;hpb=f98cd29f7b53a7c08f21792773a5b3b49d41eb9c diff --git a/build.rb b/build.rb index f724fe9..d16f7da 100755 --- a/build.rb +++ b/build.rb @@ -30,6 +30,7 @@ blog_list = [] # table data FileUtils.mkdir_p('../proposed-comments') FileUtils.chmod(0777, '../proposed-comments') FileUtils.rm Dir.glob('blog/*') +FileUtils.rm Dir.glob('css/*') $db = db_init # date has no type affinity, since floating point (REAL) doesn't @@ -79,7 +80,7 @@ EOF fskel('index.html', DN, File.read('../index.html')) stdpage('blog', < + EOF @@ -89,7 +90,18 @@ if File.exists? ('../resume.md') end stdpage('favorite-things', File.read('../favorite-things.html')) +stdpage('about-me', File.read('../about-me.html')) # we could use ruby native stuff here, but this was # better documented so meh. -system("scss --cache-location ../.sass-cache --update ../css:css") +# Force because it's cache is not perfect, it definitely misses renamed symlinks. + +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