X-Git-Url: https://git.draconx.ca/gitweb/homepage.git/blobdiff_plain/e1908f247e262b45949dd6d4a0d62ca54664cf15..fe387389cf437d11a969d51b5625cd6bc4ddb79f:/Rules diff --git a/Rules b/Rules index 26bcb40..7acf71d 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,8 @@ preprocess do @items.create("", attrs, "#{dir}/index.lst") end + + create_wkd_items(@items["/pubring.gpg"]) end postprocess do @@ -216,6 +218,19 @@ compile '/**/*.scss' do write @item.identifier.without_ext + '.css' end +compile '/gpg/*' do + filter :wkd_export, armor: true + write "/pubring/" + @item.identifier.components.last + ".asc" +end + +compile '/gpg/*', rep: :hu do + filter :wkd_export + write "/pubring/wkd/" + @item[:wkd_hash] +end + +compile '/*.gpg' do +end + compile '/**/*.svg' do filter :scour, comment_stripping: true write @item.identifier.to_s