diff options
author | Matt Rude <[email protected]> | 2011-06-22 13:45:41 -0500 |
---|---|---|
committer | Matt Rude <[email protected]> | 2011-06-22 13:45:41 -0500 |
commit | b80e78d7b1d37bd086bc1caf82f67d884c2efdb3 (patch) | |
tree | 90423bdc628d1ec1cae5df62c7c9bec35c2b75fc | |
parent | 1ca14418fd20a0f6e2ca9d896dad81fa7f03efba (diff) | |
download | time.mattrude.com-b80e78d7b1d37bd086bc1caf82f67d884c2efdb3.tar.gz time.mattrude.com-b80e78d7b1d37bd086bc1caf82f67d884c2efdb3.tar.bz2 time.mattrude.com-b80e78d7b1d37bd086bc1caf82f67d884c2efdb3.zip |
Starting to revamp the site build proccess, working on adding markdown support.
-rwxr-xr-x | scripts/do-build-site | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/scripts/do-build-site b/scripts/do-build-site index 1a66d2a..c2f9e50 100755 --- a/scripts/do-build-site +++ b/scripts/do-build-site @@ -1,8 +1,21 @@ #!/bin/sh -POOLPAGE=/var/www/time.mattrude.com/status -TEMPLATESDIR=/var/www/time.mattrude.com/scripts/templates +ROOT=/var/www/time.mattrude.com +POOLPAGE=$ROOT/status +TEMPLATESDIR=$ROOT/scripts/templates +DOCUMENTSDIR=$ROOT/documentation + +### Building the README Page ### + +cd $ROOT +rm -f $ROOT/readme.tmp $TEMPLATESDIR/readme.html +markdown $ROOT/README.md > $ROOT/readme.tmp +cat $TEMPLATESDIR/index-head $ROOT/readme.tmp $TEMPLATESDIR/index-tail > $DOCUMENTSDIR/readme.html +rm -f $ROOT/readme.tmp + + +### Building the Status Pages ### mkdir -p $POOLPAGE cd $POOLPAGE cat /dev/null > out.template |