commit de01cd8efe9fa959c3f05a69251fb3f20ab33f42 parent 27d662cd698cfbe082c2f5777b560e174a87ad62 Author: Kyle Milz <kyle@0x30.net> Date: Tue, 10 Jan 2017 23:40:41 -0700 www: add sync script Diffstat:
A | distrib/www.sh | | | 10 | ++++++++++ |
D | distrib/www_man.sh | | | 8 | -------- |
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/distrib/www.sh b/distrib/www.sh @@ -0,0 +1,10 @@ +#!/bin/sh -e + +mkdir -p www/man + +mandoc_cmd="mandoc -Thtml -Ostyle=/citrun.css -Oman=%N.%S.html" +for man in *.1; do + $mandoc_cmd $man > www/man/`basename $man`.html +done + +scp -r www/* 0x30.net:/var/www/htdocs/citrun.com/ diff --git a/distrib/www_man.sh b/distrib/www_man.sh @@ -1,8 +0,0 @@ -#!/bin/sh -e - -mkdir -p www/man - -mandoc_cmd="mandoc -Thtml -Ostyle=/citrun.css -Oman=%N.%S.html" -for man in man/*.1; do - $mandoc_cmd $man > www/man/`basename $man`.html -done