]> git.phdru.name Git - git-wiki.git/commitdiff
Publish the PEP by converting text to Cheetah Template
authorOleg Broytman <phd@phdru.name>
Tue, 14 Jun 2016 19:56:22 +0000 (22:56 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 14 Jun 2016 19:56:22 +0000 (22:56 +0300)
publish [new file with mode: 0755]

diff --git a/publish b/publish
new file mode 100755 (executable)
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*