View | Details | Raw Unified | Return to bug 45021
Collapse All | Expand All

(-)processlogs (-15 / +21 lines)
Lines 173-182 Link Here
173
  fi
173
  fi
174
}
174
}
175
175
176
footer() {
177
  echo "</table>" >>$of
178
  echo "</body>" >>$of
179
  echo "</html>" >>$of
180
}
181
176
#
182
#
177
# Create "default" output, sorted on portname
183
# Create "default" output, sorted on portname
178
#
184
#
179
header "<th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Maintainer</th><th>Reason</th><th>Date build</th>"
185
header "<th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Maintainer</th><th>Reason</th><th>Build date</th>"
180
186
181
for i in `cat .logs | sort`; do
187
for i in `cat .logs | sort`; do
182
    set $(echo $i | tr \| " ")
188
    set $(echo $i | tr \| " ")
Lines 184-190 Link Here
184
    echo "<td><a href=\"$1\">$2</a></td>" >> $of
190
    echo "<td><a href=\"$1\">$2</a></td>" >> $of
185
191
186
    affby=$3
192
    affby=$3
187
    test $affby = "0" && affby=""
193
    test $affby = "0" -o $affby = "-1" && affby="&nbsp;"
188
    echo "<td align=\"right\">$affby</td><td align=\"right\">$4 Kb</td>" >> $of
194
    echo "<td align=\"right\">$affby</td><td align=\"right\">$4 Kb</td>" >> $of
189
    echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
195
    echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
190
    echo "<td><a href=\"mailto:$6\">$6</a></td>" >> $of
196
    echo "<td><a href=\"mailto:$6\">$6</a></td>" >> $of
Lines 200-212 Link Here
200
206
201
    echo "</tr>" >> $of
207
    echo "</tr>" >> $of
202
done
208
done
203
echo "</table>" >> $of
209
footer ""
204
mv -f $of index.html
210
mv -f $of index.html
205
211
206
#
212
#
207
# Create output by category
213
# Create output by category
208
#
214
#
209
header "<th>CVS</th><th>Aff.</th><th>Size</th><th>Port</th><th>Maintainer</th><th>Reason</th><th>Date build</th>"
215
header "<th>CVS</th><th>Aff.</th><th>Size</th><th>Port</th><th>Maintainer</th><th>Reason</th><th>Build date</th>"
210
216
211
for i in `cat .logs | sort -t \\| +4`; do
217
for i in `cat .logs | sort -t \\| +4`; do
212
    set $(echo $i | tr \| " ")
218
    set $(echo $i | tr \| " ")
Lines 214-220 Link Here
214
    echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
220
    echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
215
221
216
    affby=$3
222
    affby=$3
217
    test $affby = "0" && affby=""
223
    test $affby = "0" -o $affby = "-1" && affby="&nbsp;"
218
    echo "<td align=\"right\">$affby</td><td align=\"right\">$4 Kb</td>" >> $of
224
    echo "<td align=\"right\">$affby</td><td align=\"right\">$4 Kb</td>" >> $of
219
    echo "<td><a href=\"$1\">$2</a></td>" >> $of
225
    echo "<td><a href=\"$1\">$2</a></td>" >> $of
220
    echo "<td><a href=\"mailto:$6\">$6</a></td>" >> $of
226
    echo "<td><a href=\"mailto:$6\">$6</a></td>" >> $of
Lines 230-242 Link Here
230
236
231
    echo "</tr>" >> $of
237
    echo "</tr>" >> $of
232
done
238
done
233
echo "</table>" >> $of
239
footer ""
234
mv -f $of index-category.html
240
mv -f $of index-category.html
235
241
236
#
242
#
237
# Create output by maintainer
243
# Create output by maintainer
238
#
244
#
239
header "<th>Maintainer</th><th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Reason</th><th>Date build</th>"
245
header "<th>Maintainer</th><th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Reason</th><th>Build date</th>"
240
246
241
for i in `cat .logs | sort -t \\| +5`; do
247
for i in `cat .logs | sort -t \\| +5`; do
242
    set $(echo $i | tr \| " ")
248
    set $(echo $i | tr \| " ")
Lines 245-251 Link Here
245
    echo "<td><a href=\"$1\">$2</a></td>" >> $of
251
    echo "<td><a href=\"$1\">$2</a></td>" >> $of
246
252
247
    affby=$3
253
    affby=$3
248
    test $affby = "0" && affby=""
254
    test $affby = "0" -o $affby = "-1" && affby="&nbsp;"
249
    echo "<td align=\"right\">$affby</td><td align=\"right\">$4 Kb</td>" >> $of
255
    echo "<td align=\"right\">$affby</td><td align=\"right\">$4 Kb</td>" >> $of
250
    echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
256
    echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
251
257
Lines 260-272 Link Here
260
266
261
    echo "</tr>" >> $of
267
    echo "</tr>" >> $of
262
done
268
done
263
echo "</table>" >> $of
269
footer ""
264
mv -f $of index-maintainer.html
270
mv -f $of index-maintainer.html
265
271
266
#
272
#
267
# Create output by error
273
# Create output by error
268
#
274
#
269
header "<th>Reason</th><th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Maintainer</th><th>Date build</th>"
275
header "<th>Reason</th><th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Maintainer</th><th>Build date</th>"
270
276
271
for i in `cat .logs | sort -t \\| +7`; do
277
for i in `cat .logs | sort -t \\| +7`; do
272
    set $(echo $i | tr \| " ")
278
    set $(echo $i | tr \| " ")
Lines 281-287 Link Here
281
    echo "<td><a href=\"$1\">$2</a></td>" >> $of
287
    echo "<td><a href=\"$1\">$2</a></td>" >> $of
282
288
283
    affby=$3
289
    affby=$3
284
    test $affby = "0" && affby=""
290
    test $affby = "0" -o $affby = "-1" && affby="&nbsp;"
285
    echo "<td align=\"right\">$affby</td><td align=\"right\">$4 Kb</td>" >> $of
291
    echo "<td align=\"right\">$affby</td><td align=\"right\">$4 Kb</td>" >> $of
286
    echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
292
    echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
287
    echo "<td><a href=\"mailto:$6\">$6</a></td>" >> $of
293
    echo "<td><a href=\"mailto:$6\">$6</a></td>" >> $of
Lines 291-303 Link Here
291
297
292
    echo "</tr>" >> $of
298
    echo "</tr>" >> $of
293
done
299
done
294
echo "</table>" >> $of
300
footer ""
295
mv -f $of index-reason.html
301
mv -f $of index-reason.html
296
302
297
#
303
#
298
# Create output by builddate
304
# Create output by builddate
299
#
305
#
300
header "<th>Date build</th><th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Maintainer</th><th>Reason</th>"
306
header "<th>Build date</th><th>Port</th><th>Aff.</th><th>Size</th><th>CVS</th><th>Maintainer</th><th>Reason</th>"
301
307
302
for i in `cat .logs | sort -t \\| +9`; do
308
for i in `cat .logs | sort -t \\| +9`; do
303
    set $(echo $i | tr \| " ")
309
    set $(echo $i | tr \| " ")
Lines 309-315 Link Here
309
    echo "<td><a href=\"$1\">$2</a></td>" >> $of
315
    echo "<td><a href=\"$1\">$2</a></td>" >> $of
310
316
311
    affby=$3
317
    affby=$3
312
    test $affby = "0" && affby=""
318
    test $affby = "0" -o $affby = "-1" && affby="&nbsp;"
313
    echo "<td align=\"right\">$affby</td><td align=\"right\">$4 Kb</td>" >> $of
319
    echo "<td align=\"right\">$affby</td><td align=\"right\">$4 Kb</td>" >> $of
314
    echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
320
    echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
315
    echo "<td><a href=\"mailto:$6\">$6</a></td>" >> $of
321
    echo "<td><a href=\"mailto:$6\">$6</a></td>" >> $of
Lines 322-328 Link Here
322
328
323
    echo "</tr>" >> $of
329
    echo "</tr>" >> $of
324
done
330
done
325
echo "</table>" >> $of
331
footer ""
326
mv -f $of index-builddate.html
332
mv -f $of index-builddate.html
327
333
328
#
334
#

Return to bug 45021