Free Web Hosting Provider - Web Hosting - E-commerce - High Speed Internet - Free Web Page
Search the Web


TCFSA Archive Home
Sorted Index
Inventory
Policy
Driving directions
Contact info
Links to other web sites

The
Twin City Figure Skating Association
Archives

Makefile and shell scripts for maintaining the web site

 

Makefile

.SUFFIXES : .html .sh .txt

.sh.html:
	./$*.sh

.txt.html:
	cp $< $@

BUILDERS=tbtitle.sh tbsubtitle.sh tbend.sh promo.sh promox.sh table.sh tr.sh 
endtable.sh panel.sh pictable.sh picrow.sh picendtable.sh pichead.sh meta.txt

PAGES=index.html 25th.html 91.html sorted.html inven.html policy.html map.html 
contact.html links.html props.html docs.html costumes.html box02.html 
box01.html emily.html build.html 1973-0410.html 1973-0625.html webmasters.html 
dvworksheet.html awards.html

WEBUNIX=$(HOME)/public_html/webunix
ACCT=tcfsa

all: $(PAGES)
.FORCE:

webunix: .FORCE
	cd $(WEBUNIX) ; make

index.html: index.sh index.txt awards.txt tbawards.sh $(BUILDERS) tbhome.sh 
edshed.tracker webunix

awards.txt: webunix $(WEBUNIX)/$(ACCT).awards.txt
	cp $(WEBUNIX)/$(ACCT).awards.txt awards.txt

build.html: Makefile *.sh
	./build.sh $@ Makefile *.sh

awards.html: awards.sh awards.txt $(BUILDERS)
dvworksheet.html: dvworksheet.txt
webmasters.html: webmasters.sh $(BUILDERS) webmasters.txt
1973-0410.html: 1973-0410.sh $(BUILDERS) 1973-0410.txt
1973-0625.html: 1973-0625.sh $(BUILDERS) 1973-0625.txt
91.html: 91.sh $(BUILDERS)
25th.html: 25th.sh 25th.txt $(BUILDERS)
sorted.html: sorted.sh sorted.db $(BUILDERS)
inven.html: inven.sh inven.txt $(BUILDERS)
policy.html: policy.sh policy.txt $(BUILDERS)
map.html: map.sh map.txt $(BUILDERS)
contact.html: contact.sh contact.txt $(BUILDERS)
links.html: links.sh links.txt $(BUILDERS)
props.html: props.sh props.txt $(BUILDERS)
docs.html: docs.sh docs.txt $(BUILDERS)
costumes.html: costumes.sh costumes.txt $(BUILDERS)
box02.html: box02.sh box02.txt $(BUILDERS)
box01.html: box01.sh box01.txt $(BUILDERS)
emily.html: emily.sh $(BUILDERS)

1973-0410.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbtitle.sh Minutes - TCFSA Archives >> $F
./tbsubtitle.sh Minutes from the first meeting >> $F
cat $BODY >> $F
echo '<p> </p>' >> $F
./promo.sh $F >> $F

1973-0625.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbtitle.sh Minutes - TCFSA Archives >> $F
./tbsubtitle.sh Minutes from the second meeting >> $F
cat $BODY >> $F
echo '<p> </p>' >> $F
./promo.sh $F >> $F

25th.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbtitle.sh 25th Anniversary Program - TCFSA Archives >> $F
./tbsubtitle.sh 25th Anniversary Program Contents >> $F
cat $BODY >> $F
echo '<p> </p>' >> $F
./promo.sh $F >> $F
F=25tha.html
rm -f $F
touch $F
./table.sh TCFSA 25th Anniversary Program, Cover-Page 12 >> $F
./tr.sh 25th cover 01 02  >> $F
./tr.sh 25th 03 04 05 >> $F
./tr.sh 25th 06 07 08 >> $F
./tr.sh 25th 09 10 11 >> $F
./tr.sh 25th 12 >> $F
./endtable.sh $F >> $F
F=25thb.html
rm -f $F
touch $F
./table.sh TCFSA 25th Anniversary Program, Pages 13-24 >> $F
./tr.sh 25th 13 14 15  >> $F
./tr.sh 25th 16 17 18 >> $F
./tr.sh 25th 19 20 21 >> $F
./tr.sh 25th 22 23 24 >> $F
./endtable.sh $F >> $F
F=25thc.html
rm -f $F
touch $F
./table.sh TCFSA 25th Anniversary Program, Pages 25-36 >> $F
./tr.sh 25th 25 26 27  >> $F
./tr.sh 25th 28 29 30 >> $F
./tr.sh 25th 31 32 33 >> $F
./tr.sh 25th 34 35 36 >> $F
./endtable.sh $F >> $F
F=25thd.html
rm -f $F
touch $F
./table.sh TCFSA 25th Anniversary Program, Pages 37-48 >> $F
./tr.sh 25th 37 38 39  >> $F
./tr.sh 25th 40 41 42 >> $F
./tr.sh 25th 43 44 45 >> $F
./tr.sh 25th 46 47 48 >> $F
./endtable.sh $F >> $F
F=25the.html
rm -f $F
touch $F
./table.sh TCFSA 25th Anniversary Program, Pages 49-end >> $F
./tr.sh 25th 49 50 51  >> $F
./tr.sh 25th 52 53 54 >> $F
./endtable.sh $F >> $F

8.sh


91.sh

#!/bin/sh
F=91.html
rm -f $F
touch $F
./table.sh 1991 National Championships Program >> $F
./tr.sh 91 cover cover2 01 >> $F
./tr.sh 91 05 >> $F
./endtable.sh $F >> $F

awards.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbtitle.sh Awards - TCFSA Archives >> $F
./tbsubtitle.sh Awards earned by the TCFSA Archives >> $F
cat $BODY >> $F
echo '<p> </p>' >> $F
./promo.sh $F >> $F

box01.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbtitle.sh Box 1 - TCFSA Archives >> $F
./tbsubtitle.sh 'Box 1 - "TCFSA Bid Research, Proposals, Backgrd. From 
1973 to 19xx."' >> $F
cat $BODY >> $F
echo '<p> </p>' >> $F
./promo.sh $F >> $F

box02.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbtitle.sh Box 2 - TCFSA Archives >> $F
./tbsubtitle.sh 'Box 2 - "TCFSA Minutes"' >> $F
cat $BODY >> $F
echo '<p> </p>' >> $F
./promo.sh $F >> $F

boxlist.sh

#!/bin/sh
rm -f boxlist.txt binlist.txt
touch boxlist.txt binlist.txt
for i in 0 1 2 3 4
do
for j in 0 1 2 3 4 5 6 7 8 9
do
 echo '<li>Box' ${i}${j} '-' >> boxlist.txt
 echo '<li>Bin' ${i}${j} '-' >> binlist.txt
done
done

build.sh

#!/bin/sh
F="$1"
shift
rm -f $F
touch $F
./tbtitle.sh Makefile - TCFSA Archives >> $F
./tbsubtitle.sh Makefile and shell scripts for maintaining the web site 
>> $F
for i in $*
 do
  echo "<h3>$i</h3><pre>" >> $F
  sed 's/</\</g' $i | sed 's/>/\>/g' | fold -s >> $F
  echo "</pre>" >> $F
 done
echo '<p> </p>' >> $F
./promo.sh $F >> $F

contact.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbtitle.sh Contact Info - TCFSA Archives >> $F
./tbsubtitle.sh Contact Information >> $F
cat $BODY >> $F
echo '<p> </p>' >> $F
./promo.sh $F >> $F

costumes.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbtitle.sh Costumes - TCFSA Archives >> $F
./tbsubtitle.sh Costumes in the Storage Shed >> $F
cat $BODY >> $F
echo '<p> </p>' >> $F
./promo.sh $F >> $F

default.sh

#!/bin/sh
for i in map contact policy props costumes docs inven links
do
 ./dummy.sh $i
done

docs.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbtitle.sh Documents - TCFSA Archives >> $F
./tbsubtitle.sh Documents, Pictures, Programs, and the like, in the Storage 
Shed >> $F
cat $BODY >> $F
echo '<p> </p>' >> $F
./promo.sh $F >> $F

dummy.sh

#!/bin/sh
F=$1.html
rm -f $F
touch $F
echo '<head>' >> $F
echo '<title>'$1'</title>' >> $F
echo '</head>' >> $F
echo '<BODY ALINK="teal" VLINK="purple" LINK="red"' >> $F
echo 'BACKGROUND="graphics/ice.gif" BGCOLOR="silver" TEXT="navy">' >> 
$F
echo '<p><hr width="60%"><br></p>' >> $F
echo '<center><h1>'$1'</h1>' >> $F
echo '<p><br><br><hr width="60%"><br></p>' 
>> $F
echo '</body>' >> $F
echo '</html>' >> $F

emily.sh

#!/bin/sh
LOC="Susan's house"
F=emily.html
rm -f $F
touch $F
./pictable.sh "Emily's Dresses" >> $F
./pichead.sh >> $F
./picrow.sh "$LOC" 01 06 Lavender print with V-inset short sleeve. Size 12. 
'$20.' >> $F
./picrow.sh "$LOC" 01 07 Red, purple, black with white and yellow warm-up. Size 
6X. '$8.' >> $F
./picrow.sh "$LOC" 01 08 Short sleeve - turquoise with print, purple inset 
clasp at neck. Size 7. '$16.' >> $F
./picrow.sh "$LOC" 01 10 '"Greased Lightning"' costume. 2 Leotards 
'(see next photo)' Black skirt and black vest. Size 10 / Size 12. '$25.' 
>> $F
./picrow.sh "$LOC" 01 11 Second leotard for '"Greased Lightning"' 
costume. Included in above costume set. >> $F
./picrow.sh "$LOC" 02 1 Multicolored striped skirt. Size 6. '$4.' >> $F
./picrow.sh "$LOC" 02 2 Blue and black water color with black sheer skirt. Size 
10. '$20.' >> $F
./picrow.sh "$LOC" 02 25 Blue velvet with empire skirt of satin lycra, blue 
sequins. Adult small. '$25.' >> $F
./picendtable.sh $F >> $F

endtable.sh

#!/bin/sh
echo '</table></center>'
./promo.sh $1

index.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbhome.sh Twin City Figure Skating Association Archives >> $F
./tbawards.sh Our pieces of skating history come online >> $F
cat $BODY >> $F
#cat awards.txt >> $F
cat edshed.tracker >> $F
./promo.sh $F >> $F

inven.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbtitle.sh Inventory - TCFSA Archives >> $F
./tbsubtitle.sh Storage Shed Inventory >> $F
cat $BODY >> $F
echo '<p> </p>' >> $F
./promo.sh $F >> $F

links.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbtitle.sh Links - TCFSA Archives >> $F
./tbsubtitle.sh Links to Other Web Sites >> $F
cat $BODY >> $F
echo '<p> </p>' >> $F
./promo.sh $F >> $F

map.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbtitle.sh Driving Directions - TCFSA Archives >> $F
./tbsubtitle.sh Driving Directions >> $F
cat $BODY >> $F
echo '<p> </p>' >> $F
./promo.sh $F >> $F

mvbatch.sh

#!/bin/sh
if [ $# -ne 1 ]
then
 echo 'usage:' $0 number
 exit 1
fi
cd batch$1
for i in `ls -1 *.jpg | sed 's/Untitled-//g'`
do
 mv Untitled-$i batch$1-$i
done

oktoberfest.sh

#!/bin/sh
LOC="Hastings High School"
F=oktoberfest.html
rm -f $F
touch $F
./pictable.sh "Oktoberfest" >> $F
./pichead.sh >> $F
./picrow.sh "$LOC" 04 1 Bowling game >> $F
./picrow.sh "$LOC" 04 2 Entrance >> $F
./picrow.sh "$LOC" 04 3 Fishing >> $F
./picrow.sh "$LOC" 04 4 Brats, Dogs, German Potato Salad, Apfelkuchen >> 
$F
./picrow.sh "$LOC" 04 5 Frau, Queen of Oktoberfest  >> $F
./picrow.sh "$LOC" 04 6 Face Painting - painting her own face >> $F
./picrow.sh "$LOC" 04 7 German Honor Society Officers >> $F
./picrow.sh "$LOC" 04 8 Edelweiss Dancers >> $F
./picrow.sh "$LOC" 04 9 Edelweiss Dancers >> $F
./picrow.sh "$LOC" 04 10 Edelweiss Dancers >> $F
./picendtable.sh $F >> $F

panel.sh

#!/bin/sh
PREFIX="$1"
shift
if [ ! -f images/$PREFIX$1.jpg ]
then
 exit
fi
./tbtitle.sh `cat .head` Page $1
./tbsubtitle.sh `cat .head` Page $1
echo '<center><img src="images/'$PREFIX$1'.jpg" border=0>'
echo '</center>'
./promo.sh $PREFIX$1.html

picendtable.sh

#!/bin/sh
echo '</table></center>'
./promo.sh $1

pichead.sh

#!/bin/sh
echo '<tr>'
echo '<th>Picture</th>'
echo '<th>Description</th>'
echo "<th>Item's Location</th>"
echo '</tr>'

picrow.sh

#!/bin/sh
LOC="$1"
BATCH="$2"
PIC="$3"
shift
shift
shift
echo '<tr>'
echo '<td><img 
src="batch'$BATCH'/'batch$BATCH-$PIC.jpg'"></td>'
echo '<td>'$*'</td>'
echo '<td align="center">'$LOC'</td>'
echo '</tr>'

pictable.sh

#!/bin/sh
rm -f .head
echo $* > .head
./tbtitle.sh $*
./tbsubtitle.sh $*
echo '<center><table border="1" 
cellpadding="2"><caption><i>'Here are the items and 
descriptions'</i></caption>'

policy.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbtitle.sh Policy for Use - TCFSA Archives >> $F
./tbsubtitle.sh Storage Shed Usage Policy >> $F
cat $BODY >> $F
echo '<p> </p>' >> $F
./promo.sh $F >> $F

promo.sh

#!/bin/sh
./promox.sh $1

promox.sh

#!/bin/sh
PAGE="unknown.html"
if [ $# -eq 1 ]
then
 PAGE="$1"
fi
echo '<p><font size="-1"><i>This page (<font 
color="blue">'$PAGE'</font>) is maintained by'
echo '<a href="mailto:shedmaster@tcfsa.freeservers.com">Ed 
Barnard</a>.'
echo 'Last update' `date`'.'
echo 'There have been'
echo '<ISML TYPE="counter">'
echo 'visitors since October 13,'
echo '1999.</i></font></P>'
echo '<p><center><hr width="60%">'
./promo tcfsa
echo '</center>'
echo '</BODY>'
echo '</HTML>'

props.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbtitle.sh Props - TCFSA Archives >> $F
./tbsubtitle.sh Props and other stuff in the Storage Shed >> $F
cat $BODY >> $F
echo '<p> </p>' >> $F
./promo.sh $F >> $F

sorted.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbtitle.sh Sorted Index - TCFSA Archives >> $F
./tbsubtitle.sh Sorted List of TCFSA Items Online >> $F
#cat $BODY >> $F
echo '<ol>' >> $F
grep -v '^#' $BASE.db | sort | awk -f $BASE.awk >> $F
echo '</ol>' >> $F
echo '<p> </p>' >> $F
./promo.sh $F >> $F

table.sh

#!/bin/sh
rm -f .head
echo $* > .head
./tbtitle.sh $*
./tbsubtitle.sh $*
echo '<center><table><caption><i>'Click on the image to 
see it full size'</i></caption>'

tbawards.sh

#!/bin/sh
echo '<h3><i>'$*'</i></h3></TD></TR>'
echo '</table>'

tbend.sh

#!/bin/sh
echo '</td></TR></TABLE>'

tbhome.sh

#!/bin/sh
cat meta.txt
echo '    <TITLE>'$*'</TITLE>'
echo '</HEAD>'
echo '<BODY ALINK="teal" VLINK="purple" LINK="red"'
echo ' BACKGROUND="graphics/ice.gif" BGCOLOR="silver" TEXT="navy">'
echo '<hr width="95%">'
#echo '<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="700">'
echo '<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="100%">'
echo '    <TR>'
echo '        <TD WIDTH="100" VALIGN="TOP" align="left"><P>'
echo '             <A HREF="sorted.html"><IMG SRC="graphics/index.gif"'
echo '             width="100" height="24"'
echo '             ALIGN="BOTTOM" ALT="Sorted Index" 
BORDER="0"></A><BR>'
echo '             <A HREF="inven.html"><IMG 
SRC="graphics/button1.gif"'
echo '             width="100" height="24"'
echo '             ALIGN="BOTTOM" ALT="Inventory" 
BORDER="0"></A><BR>'
echo '             <A HREF="policy.html"><IMG 
SRC="graphics/button3.gif" '
echo '             width="100" height="24"'
echo '             ALIGN="BOTTOM" ALT="Policy" 
BORDER="0"></A><BR>'
echo '             <A HREF="map.html"><IMG SRC="graphics/button2.gif"'
echo '             width="100" height="24"'
echo '             ALT="Driving directions" BORDER="0"></A><br>'
echo '             <a href="contact.html"><img 
src="graphics/button4.gif"'
echo '             width="100" height="24"'
echo '             ALIGN="BOTTOM" ALT="Contact info" 
BORDER="0"></A><BR>'
echo '             <a href="links.html"><img 
src="graphics/button5.gif"'
echo '             width="100" height="24"'
echo '             ALIGN="BOTTOM" ALT="Links to other web sites" 
BORDER="0"></A><BR>'
echo '             </P>'
echo '            </TD>'
echo '        <TD ALIGN="CENTER" VALIGN="TOP"><P>'
echo '<h1>The<br>Twin City Figure Skating 
Association<br>Archive</h1>'

tbsubtitle.sh

#!/bin/sh
echo '<h3><i>'$*'</i></h3></TD></TR>'
echo '<tr><td> </td></tr></table>'

tbtitle.sh

#!/bin/sh
cat meta.txt
echo '    <TITLE>'$*'</TITLE>'
echo '</HEAD>'
echo '<BODY ALINK="teal" VLINK="purple" LINK="red"'
echo ' BACKGROUND="graphics/ice.gif" BGCOLOR="silver" TEXT="navy">'
echo '<hr width="95%">'
echo '<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="100%">'
echo '    <TR>'
echo '        <TD WIDTH="100" VALIGN="TOP" align="left"><P>'
echo '             <A HREF="index.html"><IMG SRC="graphics/button.gif"'
echo '             width="100" height="24"'
echo '             ALIGN="BOTTOM" ALT="TCFSA Archive Home" 
BORDER="0"></A><BR>'
echo '             <A HREF="sorted.html"><IMG SRC="graphics/index.gif"'
echo '             width="100" height="24"'
echo '             ALIGN="BOTTOM" ALT="Sorted Index" 
BORDER="0"></A><BR>'
echo '             <A HREF="inven.html"><IMG 
SRC="graphics/button1.gif"'
echo '             width="100" height="24"'
echo '             ALIGN="BOTTOM" ALT="Inventory" 
BORDER="0"></A><BR>'
echo '             <A HREF="policy.html"><IMG 
SRC="graphics/button3.gif" '
echo '             width="100" height="24"'
echo '             ALIGN="BOTTOM" ALT="Policy" 
BORDER="0"></A><BR>'
echo '             <A HREF="map.html"><IMG SRC="graphics/button2.gif"'
echo '             width="100" height="24"'
echo '             ALT="Driving directions" BORDER="0"></A><br>'
echo '             <a href="contact.html"><img 
src="graphics/button4.gif"'
echo '             width="100" height="24"'
echo '             ALIGN="BOTTOM" ALT="Contact info" 
BORDER="0"></A><BR>'
echo '             <a href="links.html"><img 
src="graphics/button5.gif"'
echo '             width="100" height="24"'
echo '             ALIGN="BOTTOM" ALT="Links to other web sites" 
BORDER="0"></A><BR>'
echo '             </P>'
echo '            </TD>'
echo '        <TD ALIGN="CENTER" VALIGN="TOP"><P>'
echo '<h1>The<br>Twin City Figure Skating 
Association<br>Archives</h1>'

tr.sh

#!/bin/sh
PREFIX="$1"
shift
echo '<tr>'
for i in $*
do
  rm -f $PREFIX$i.html $PREFIX${i}m.html
  ./panel.sh $PREFIX $i > $PREFIX$i.html
  if [ ! -s $PREFIX$i.html ]
  then
   rm -f $PREFIX$i.html
  fi
  ./panel.sh $PREFIX ${i}m > $PREFIX${i}m.html
  if [ ! -s $PREFIX${i}m.html ]
  then
   rm -f $PREFIX${i}m.html
  fi
  echo '<td align="center">'
  if [ -f images/$PREFIX${i}t.jpg ]
  then
    if [ -f $PREFIX${i}m.html ]
    then
     echo '<a href="'$PREFIX${i}'m.html">'Page $i' 
med.</a><br>'
    else
     echo '(no med. image yet)<br>'
    fi
    echo '<a href="'$PREFIX$i'.html"><img 
src="images/'$PREFIX$i't.jpg" border="0"><br>'Page $i' 
lg.</a><br><br><br>'
  else
    echo '(no page' $i 'image yet)'
  fi
  echo '</td>'
done
echo '</tr>'

webmasters.sh

#!/bin/sh
BASE=`basename $0 | sed 's/\.sh//'`
F=$BASE.html
BODY=$BASE.txt
rm -f $F
touch $F
./tbtitle.sh Webmasters - TCFSA Archives >> $F
./tbsubtitle.sh About this web site >> $F
cat $BODY >> $F
echo '<p> </p>' >> $F
./promo.sh $F >> $F

 

This page (build.html) is maintained by Ed Barnard. Last update Sun Oct 24 21:10:15 CDT 1999. There have been 1297 visitors since October 13, 1999.


Utrade banner