repo2html will now output directly into www-root

master
Mike Gerwitz 2013-05-21 22:45:13 -04:00
parent 05e85eb4dc
commit af9661fcc2
2 changed files with 7 additions and 10 deletions

6
.gitignore vendored
View File

@ -1,6 +1,2 @@
index.html
rss.xml
# build dir
www-root
# thoughts
[0-9]*/

View File

@ -18,6 +18,7 @@
# list of articles to compile
articles := $(patsubst %.txt, %.html, $(wildcard papers/*.txt))
www_root := www-root/
.PHONY: default clean thoughts
@ -25,6 +26,7 @@ articles := $(patsubst %.txt, %.html, $(wildcard papers/*.txt))
default: www-root
thoughts:
mkdir -p "$(www_root)"
repo2html \
-t "Mike Gerwitz's Thoughts and Ramblings" \
-d 'The miscellaneous thoughts and ramblings of a free software hacker' \
@ -33,9 +35,10 @@ thoughts:
-C '/style.css' \
-T "$(PWD)/tpl" \
-E \
-R40 \
-R 40 \
-o "$(www_root)" \
'http://mikegerwitz.com/thoughts/' \
> index.html
> "$(www_root)/index.html"
# all .txt articles will be compiled with asciidoc, then post-processed with the
# mgify script
@ -48,12 +51,10 @@ thoughts:
www-root: $(articles) thoughts
mkdir -p www-root/papers
cp index.html www-root/
cp papers/*.html www-root/papers/
cp -r [0-9]* www-root/
cp -r images/ www-root/
cp style.css www-root/
ln -sf ../images www-root/papers/images
clean:
rm -rf [0-9]*/
rm -rf [0-9]*/ www-root/