voting/include/evilsedhack
Bradley M. Kuhn f63e4aa989 Add hr here.
2014-02-10 18:00:07 -05:00

24 lines
598 B
Bash
Executable file

#!/bin/sh
PAGE=$1
ROOT=$2
sed "s,<head>,<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />,i;s,<body\([^>]*\)>,<body\1><div id=\"body\">,i;/<\/body>/,//d" $PAGE
cat <<-FOOT
</div>
<div id="hdr">
<p class="none"></p>
<hr/>
<div id="hdrNav">
<a href="https://www.sfconservancy.org/">Conservancy's website</a> &middot;
<a href="mailto:elections@sfconservancy.org">Email problems to: &lt;elections@sfconservancy.org&gt;</a> &middot;
<a href="https://gitorious.org/conservancy/voting/">Source code for this site</a>
</div>
</div>
</body>
</html>
FOOT