X-Git-Url: https://git.draconx.ca/gitweb/homepage.git/blobdiff_plain/78e7de848f072d19e6c99865f793dbec482c7858..da38a0de6d2814c450ea356412faa03ee54cad68:/Rules diff --git a/Rules b/Rules index 383feb6..5473788 100644 --- a/Rules +++ b/Rules @@ -16,6 +16,13 @@ # along with this program. If not, see . preprocess do + # Remove dead annex keys from processing + @items.delete_if do |item| + l = File.readlink(item.raw_filename) + true if !File.exists?(item.raw_filename) and l =~ %r{/annex/objects/} + rescue Errno::EINVAL + end + commit = nil Open3.popen2("git", "rev-parse", "HEAD") do |stdin, stdout, result| stdin.close @@ -103,6 +110,10 @@ compile '/**/*.scss' do write @item.identifier.without_ext + '.css' end -passthrough '/**/*' +compile '/**/*' do + filter :copybin if @item.binary? + write @item.identifier.to_s +end + layout '/**/*.xsl', :xsl layout '/**/*', :erb