From 893d45ded9215943e86e2998e46b790cfe73f3b0 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 14 Jun 2016 22:56:22 +0300 Subject: [PATCH] Publish the PEP by converting text to Cheetah Template --- publish | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 publish 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* -- 2.39.5