2 # This file is in the public domain
9 OPLIST=`sh listallopts.sh`
17 awk -v R=$1 -v T=$2 -v M=$4 '
22 if ($3 == 0 && $5 == 0 && $7 == 0) {
23 printf "<TD align=center COLSPAN=5>no effect</TD>"
26 printf "<TD align=right>+%d</TD>", $3
28 printf "<TD align=right>"
29 printf "<A HREF=\"%s/%s.mtree.add.txt\">+%d</A>", M, t, $3
33 printf "<TD align=right>-%d</TD>", $5
35 printf "<TD align=right>"
36 printf "<A HREF=\"%s/%s.mtree.sub.txt\">-%d</A>", M, t, $5
40 printf "<TD align=right>*%d</TD>", $7
42 printf "<TD align=right>"
43 printf "<A HREF=\"%s/%s.mtree.chg.txt\">*%d</A>", M, t, $7
46 printf "<TD align=right>%d</TD>", $9
47 printf "<TD align=right>%d</TD>", -$11
54 printf "<TD COLSPAN=5></TD>"
59 cp $3/r*.txt $HDIR/$4 || true
67 echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
71 <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
72 <TITLE>FreeBSD Build Options Survey</TITLE>
74 <BODY bgcolor="#FFFFFF">
78 <H2>The table is explained at the bottom</H2>
82 echo '<TABLE border="1" cellspacing="0">' >> $H
85 echo "<TH ROWSPAN=2>src.conf</TH>" >> $H
86 echo "<TH ROWSPAN=2>MK_FOO</TH>" >> $H
87 echo "<TH ROWSPAN=2></TH>" >> $H
88 echo "<TH COLSPAN=5>BuildWorld</TH>" >> $H
89 echo "<TH ROWSPAN=2></TH>" >> $H
90 echo "<TH COLSPAN=5>InstallWorld</TH>" >> $H
91 echo "<TH ROWSPAN=2></TH>" >> $H
92 echo "<TH COLSPAN=5>World</TH>" >> $H
98 echo "<TH>A</TH>" >> $H
99 echo "<TH>D</TH>" >> $H
100 echo "<TH>C</TH>" >> $H
101 echo "<TH>KB</TH>" >> $H
102 echo "<TH>Delta</TH>" >> $H
107 echo "<TD></TD>" >> $H
108 if [ ! -f $3/$1/done ] ; then
109 echo "<TD align=center COLSPAN=5>no data yet</TD>" >> $H
110 elif [ -f $3/$1/_.success ] ; then
111 table_td $2 $1 $3 $4 >> $H
113 echo "<TD align=center COLSPAN=5>failed</TD>" >> $H
120 md=`echo "${o}=foo" | md5`
122 if [ ! -d $m ] ; then
125 if [ ! -f $m/stats ] ; then
128 echo "=== mkhtml ${d}_${o}"
131 echo "<TD><PRE>" >> $H
132 cat $m/src.conf >> $H
133 echo "</PRE></TD>" >> $H
134 echo "<TD><PRE>" >> $H
135 if [ -f $m/bw/_.sc ] ; then
136 comm -13 ${RDIR}/Ref/_.sc $m/bw/_.sc >> $H
138 echo "</PRE></TD>" >> $H
145 echo "</TABLE>" >> $H
148 <H2>How to read this table</H2>
150 The table has five major columns.
153 <LI><P><B>src.conf</B></P>
154 <P>The name of the option being tested</P>
156 All options are tested both in their WITH_FOO and WITHOUT_FOO variants
157 but if the option has no effect (ie: is the default) it will not appear
162 <LI><P><B>MK_FOO</B></P>
163 <P>Internal build flags affected by this option </P>
166 <LI><P><B>Buildworld</B></P>
167 <P>What happens when the option is given to buildworld but not installworld</P>
169 make buildworld WITH_FOO=yes
174 <LI><P><B>Installworld</B></P>
175 <P>What happens when the option is given to installworld but not buildworld</P>
178 make installworld WITH_FOO=yes
182 <LI><P><B>World</B></P>
183 <P>What happens when the option is given to both buildworld and installworld</P>
185 make buildworld WITH_FOO=yes
186 make installworld WITH_FOO=yes
191 <P>Inside each of the last three major columns there are five subcolumns</P>
194 <P>Number of added files/directories (relative to the option not be given</P>
195 <P>If non-zero, the number links to a list of the added files/directories</P>
198 <P>Number of deleted files/directories (relative to the option not be given</P>
199 <P>If non-zero, the number links to a list of the files not installed files/directories</P>
202 <P>Number of changed files/directories (relative to the option not be given</P>
203 <P>If non-zero, the number links to a list of the files/directories which are differnet (two lines each)</P>
206 <P>Size of installed operating system in kilobytes</P>
207 <LI><P><B>Delta</B></P>
208 <P>Size change in kilobytes relative to the option not be given</P>
215 <a href="http://validator.w3.org/check?uri=referer"><img
216 src="http://www.w3.org/Icons/valid-html401"
217 alt="Valid HTML 4.01 Transitional" height="31" width="88"></a>
224 rsync -r $HDIR/. phk@phk:www/misc/build_options