From: Oleg Broytman Date: Tue, 14 Jun 2016 19:56:22 +0000 (+0300) Subject: Publish the PEP by converting text to Cheetah Template X-Git-Url: https://git.phdru.name/?p=git-wiki.git;a=commitdiff_plain;h=893d45ded9215943e86e2998e46b790cfe73f3b0 Publish the PEP by converting text to Cheetah Template --- diff --git a/publish b/publish new file mode 100755 index 0000000..1cb91d3 --- /dev/null +++ b/publish @@ -0,0 +1,22 @@ +#! /bin/sh + +web="$HOME"/Internet/WWW/htdocs/phdru.name/Software/Python/PEPs +rsync -pt pep-103.txt "$web" && +cd "$web" && + +echo \ +'#extends phd_site +#implements respond +#attr $Title = "PEP 103: Collecting information about git" +#attr $Description = "Broytman Python Software PEP 103" +#attr $Copyright = 2015 +## +#def body_rst' >pep-103.tmpl && + +sed -e '1,10s/^/| /' -e 's/\$/\\&/g' pep-103.txt >>pep-103.tmpl && + +echo \ +'#end def +$phd_site.respond(self)' >>pep-103.tmpl && + +exec chmod u=rw,go=r "$web"/pep-103.t*