1#!/bin/sh
2
3# Make index.html of all man page images so we can see them in Evergreen.
4
5echo "<html>
6  <head>
7    <title>Man Page Images</title>
8    <style type="text/css">
9      img { border: 1px solid darkred; }
10      p.img-name { margin-left: 5em; }
11    </style>
12  </head>
13  <body>"
14
15for path in $1/*.png; do
16    png=$(basename $path)
17    case "$png" in
18    # These pages include all others, CDRIVER-2035
19    bson_api.3.png)
20        continue
21    ;;
22    bson_index.3.png)
23        continue
24    ;;
25    *)
26        echo "
27  <p class="img-name"><a href=\"${png}\">${png}</a></p>
28  <p><a href=\"${png}\"><img src=\"${png}\"></a></p>"
29        ;;
30    esac
31done
32
33echo "</body></html>"
34