#! /bin/sh web="`git config --get --path htdocs.path`" && rsync -pt git-wiki.txt "$web" && cd "$web" && echo \ '#extends phd_site #implements respond #attr $Title = "Git" #attr $Description = "Broytman Python Software Git" #attr $Copyright = 2015 ## #def body_rst' >git-wiki.tmpl && sed -e 's/\$/\\&/g' git-wiki.txt >>git-wiki.tmpl && echo \ '#end def $phd_site.respond(self)' >>git-wiki.tmpl && exec chmod u=rw,go=r "$web"/git-wiki.t*