| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. sh |
| 2 | # |
| 3 | # SPDX-License-Identifier: GPL-2.0-only |
| 4 | |
| 5 | set -e |
| 6 | |
| 7 | # This script is the entry point for this container and expects two git |
| 8 | # repositories in /data-in, board-status.git and coreboot.git (with the |
| 9 | # content of the repos of the same name found at https://review.coreboot.org/ |
| 10 | # and creates two files, board-status.html and kconfig-options.html in |
| 11 | # /data-out. |
| 12 | |
| 13 | cd /data-in/board-status.gitscip-shell filesystem . . `/data-in/board-status.git`. |
| 14 | /opt/tools/board-status.htmlscip-shell filesystem . . `/opt/tools/board-status.html`. \ |
| 15 | -board-status-dir /data-in/board-status.gitscip-shell filesystem . . `/data-in/board-status.git`. \ |
| 16 | -coreboot-dir /data-in/coreboot.gitscip-shell filesystem . . `/data-in/coreboot.git`. \ |
| 17 | > /tmp/board-status.htmlscip-shell filesystem . . `/tmp/board-status.html`. |
| 18 | mvscip-shell system . . mv. /tmp/board-status.htmlscip-shell filesystem . . `/tmp/board-status.html`. /data-out/scip-shell filesystem . . `/data-out/`. |
| 19 | |
| 20 | cd /data-in/coreboot.gitscip-shell filesystem . . `/data-in/coreboot.git`. |
| 21 | /opt/tools/kconfig2htmlscip-shell filesystem . . `/opt/tools/kconfig2html`. src/Kconfig $(gitscip-shell system . . git. describe) > /tmp/kconfig-options.htmlscip-shell filesystem . . `/tmp/kconfig-options.html`. |
| 22 | mvscip-shell system . . mv. /tmp/kconfig-options.htmlscip-shell filesystem . . `/tmp/kconfig-options.html`. /data-out/scip-shell filesystem . . `/data-out/`. |