From a1ab7b6a402bfce68463023a02d7991e8f072146 Mon Sep 17 00:00:00 2001 From: Matt Rude Date: Wed, 22 Jun 2011 21:26:22 -0500 Subject: more playing --- scripts/do-build-site | 13 +++++++++---- scripts/templates/head | 9 +++++++++ scripts/templates/index-tail | 13 ------------- scripts/templates/tail | 13 +++++++++++++ 4 files changed, 31 insertions(+), 17 deletions(-) create mode 100644 scripts/templates/head delete mode 100644 scripts/templates/index-tail create mode 100644 scripts/templates/tail (limited to 'scripts') diff --git a/scripts/do-build-site b/scripts/do-build-site index c2f9e50..b4710f0 100755 --- a/scripts/do-build-site +++ b/scripts/do-build-site @@ -11,7 +11,12 @@ DOCUMENTSDIR=$ROOT/documentation 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 +cat $TEMPLATESDIR/head > $DOCUMENTSDIR/readme.html +echo "
+

time.mattrude.com — Readme File

+
+

time.mattrude.com / documentation / readme /

" >> $DOCUMENTSDIR/readme.html +cat $ROOT/readme.tmp $TEMPLATESDIR/tail >> $DOCUMENTSDIR/readme.html rm -f $ROOT/readme.tmp @@ -34,7 +39,7 @@ do done sync -cat $TEMPLATESDIR/index-head out.template $TEMPLATESDIR/index-tail > $POOLPAGE/index.html +cat $TEMPLATESDIR/index-head out.template $TEMPLATESDIR/tail > $POOLPAGE/index.html # Build the indexs for the hosts. for X in `cat /var/www/time.mattrude.com/rrd/list-of-systems` @@ -43,7 +48,7 @@ do cat /dev/null > out.template sed -e s/POOL/$X/g $TEMPLATESDIR/template-host >> out.template sync - cat out.template $TEMPLATESDIR/index-tail > $X/index.html + cat out.template $TEMPLATESDIR/tail > $X/index.html rm -f out.template for a in clients offset jitter frequency sjit cjit wander disp do @@ -51,7 +56,7 @@ do cat /dev/null > out.template sed -e s/POOL/$X/g $TEMPLATESDIR/template-by-type |sed -e s/TYPE/$a/g >> out.template sync - cat out.template $TEMPLATESDIR/index-tail > $X/$a/index.html + cat out.template $TEMPLATESDIR/tail > $X/$a/index.html rm -f out.template done done diff --git a/scripts/templates/head b/scripts/templates/head new file mode 100644 index 0000000..aea73ea --- /dev/null +++ b/scripts/templates/head @@ -0,0 +1,9 @@ + + time.mattrude.com :: Time Server Status Page + + + + + +
+
diff --git a/scripts/templates/index-tail b/scripts/templates/index-tail deleted file mode 100644 index 7df31a4..0000000 --- a/scripts/templates/index-tail +++ /dev/null @@ -1,13 +0,0 @@ -

-

- -
- - diff --git a/scripts/templates/tail b/scripts/templates/tail new file mode 100644 index 0000000..7df31a4 --- /dev/null +++ b/scripts/templates/tail @@ -0,0 +1,13 @@ +

+ +

+ + + -- cgit v1.2.3-59-ga6da