#!/bin/sh # # Build this timeline page and the timelines beneath it. # # Woo Hoo. COUNTER=0 echo "[%] Building the index.html for the main page..." O=index.html cat .header >$O echo "" >>$O echo "`find . -name NAME | wc -l` Events Currently Listed." >>$O echo "" >>$O for each in [0-9]* do COUNTER=$(($COUNTER+1)) if [ "$COUNTER" -eq 5 ] then echo "" >>$O echo "" >>$O COUNTER=1 fi echo "" >>$O echo "" >>$O EVENTS="`find $each -name NAME | wc -l `" EVENTS=$(($EVENTS)) ECOUNT="Events." if [ "$EVENTS" -eq "1" ] then ECOUNT="Event." fi echo "$each" >>$O ./yearbuild $each done cat .footer >>index.html echo "[!] It's a living."