X-Git-Url: https://git.draconx.ca/gitweb/homepage.git/blobdiff_plain/86d0dac7b5713b9d312dd8fea8da80132829d6e6..220aba7ec291f6f8de8982074a3488d28b4aee1f:/Rules diff --git a/Rules b/Rules index 26bcb40..2256153 100644 --- a/Rules +++ b/Rules @@ -1,6 +1,6 @@ #!/usr/bin/env ruby # -# Copyright © 2018-2020 Nick Bowler +# Copyright © 2018-2022 Nick Bowler # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -68,6 +68,9 @@ preprocess do @items.create("", attrs, "#{dir}/index.lst") end + + create_wkd_items(@items["/pubring.gpg"]) + create_hkp_items(@items["/pubring.gpg"]) end postprocess do @@ -216,6 +219,23 @@ compile '/**/*.scss' do write @item.identifier.without_ext + '.css' end +compile '/gpg/*' do + filter :wkd_export_armor + write "/pubring/#{@item.identifier.components.last}.asc" + write "/pubring/#{@item[:id64]}.asc" if item[:id64] + write "/pubring/#{@item[:id32]}.asc" if item[:id32] +end + +compile '/gpg/*', rep: :hu do + if @item[:wkd_hash] + filter :wkd_export + write "/pubring/wkd/" + @item[:wkd_hash] + end +end + +compile '/*.gpg' do +end + compile '/**/*.svg' do filter :scour, comment_stripping: true write @item.identifier.to_s