2 # This file is in the public domain
8 OPLIST=`sh listallopts.sh`
16 awk -v R=$1 -v T=$2 -v M=$4 '
21 if ($3 == 0 && $5 == 0 && $7 == 0) {
22 printf "<TD align=center COLSPAN=5>no effect</TD>"
25 printf "<TD align=right>+%d</TD>", $3
27 printf "<TD align=right>"
28 printf "<A HREF=\"%s/%s.mtree.add.txt\">+%d</A>", M, t, $3
32 printf "<TD align=right>-%d</TD>", $5
34 printf "<TD align=right>"
35 printf "<A HREF=\"%s/%s.mtree.sub.txt\">-%d</A>", M, t, $5
39 printf "<TD align=right>*%d</TD>", $7
41 printf "<TD align=right>"
42 printf "<A HREF=\"%s/%s.mtree.chg.txt\">*%d</A>", M, t, $7
45 printf "<TD align=right>%d</TD>", $9
46 printf "<TD align=right>%d</TD>", -$11
53 printf "<TD COLSPAN=5></TD>"
58 cp $3/r*.txt $HDIR/$4 || true
66 echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
70 <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
71 <TITLE>FreeBSD Build Options Survey</TITLE>
73 <BODY bgcolor="#FFFFFF">
77 <H2>The table is explained at the bottom</H2>
81 echo '<TABLE border="1" cellspacing="0">' >> $H
84 echo "<TH ROWSPAN=2>src.conf</TH>" >> $H
85 echo "<TH ROWSPAN=2>MK_FOO</TH>" >> $H
86 echo "<TH ROWSPAN=2></TH>" >> $H
87 echo "<TH COLSPAN=5>BuildWorld</TH>" >> $H
88 echo "<TH ROWSPAN=2></TH>" >> $H
89 echo "<TH COLSPAN=5>InstallWorld</TH>" >> $H
90 echo "<TH ROWSPAN=2></TH>" >> $H
91 echo "<TH COLSPAN=5>World</TH>" >> $H
97 echo "<TH>A</TH>" >> $H
98 echo "<TH>D</TH>" >> $H
99 echo "<TH>C</TH>" >> $H
100 echo "<TH>KB</TH>" >> $H
101 echo "<TH>Delta</TH>" >> $H
106 echo "<TD></TD>" >> $H
107 if [ ! -f $3/$1/done ] ; then
108 echo "<TD align=center COLSPAN=5>no data yet</TD>" >> $H
109 elif [ -f $3/$1/_.success ] ; then
110 table_td $2 $1 $3 $4 >> $H
112 echo "<TD align=center COLSPAN=5>failed</TD>" >> $H
119 md=`echo "${o}=foo" | md5`
121 if [ ! -d $m ] ; then
124 if [ ! -f $m/stats ] ; then
127 echo "=== mkhtml ${d}_${o}"
130 echo "<TD><PRE>" >> $H
131 cat $m/src.conf >> $H
132 echo "</PRE></TD>" >> $H
133 echo "<TD><PRE>" >> $H
134 if [ -f $m/bw/_.sc ] ; then
135 comm -13 ${RDIR}/Ref/_.sc $m/bw/_.sc >> $H
137 echo "</PRE></TD>" >> $H
144 echo "</TABLE>" >> $H
147 <H2>How to read this table</H2>
149 The table has five major columns.
152 <LI><P><B>src.conf</B></P>
153 <P>The name of the option being tested</P>
155 All options are tested both in their WITH_FOO and WITHOUT_FOO variants
156 but if the option has no effect (ie: is the default) it will not appear
161 <LI><P><B>MK_FOO</B></P>
162 <P>Internal build flags affected by this option </P>
165 <LI><P><B>Buildworld</B></P>
166 <P>What happens when the option is given to buildworld but not installworld</P>
168 make buildworld WITH_FOO=yes
173 <LI><P><B>Installworld</B></P>
174 <P>What happens when the option is given to installworld but not buildworld</P>
177 make installworld WITH_FOO=yes
181 <LI><P><B>World</B></P>
182 <P>What happens when the option is given to both buildworld and installworld</P>
184 make buildworld WITH_FOO=yes
185 make installworld WITH_FOO=yes
190 <P>Inside each of the last three major columns there are five subcolumns</P>
193 <P>Number of added files/directories (relative to the option not be given</P>
194 <P>If non-zero, the number links to a list of the added files/directories</P>
197 <P>Number of deleted files/directories (relative to the option not be given</P>
198 <P>If non-zero, the number links to a list of the files not installed files/directories</P>
201 <P>Number of changed files/directories (relative to the option not be given</P>
202 <P>If non-zero, the number links to a list of the files/directories which are differnet (two lines each)</P>
205 <P>Size of installed operating system in kilobytes</P>
206 <LI><P><B>Delta</B></P>
207 <P>Size change in kilobytes relative to the option not be given</P>
214 <a href="http://validator.w3.org/check?uri=referer"><img
215 src="http://www.w3.org/Icons/valid-html401"
216 alt="Valid HTML 4.01 Transitional" height="31" width="88"></a>