aienos.com
Source of www.aienos.com, served from my own hardware
Brought by drakestapleton
aienos.com / om / site / test-ledger-links.sh
| 1 | #!/bin/sh |
| 2 | # ORACLE: checks what the Omega ledger linker (om/site/ledger.om lk_tresolve) wrote into a built dist. |
| 3 | # Ledger L402 names `.github profile/cudaplusplus@ef6abb8; drakestapleton.com ... works/cudaplusplus@62a663d`. |
| 4 | # A repository named in one clause must not carry past `;`: the second commit belongs to |
| 5 | # drakestapleton.com (not on the forge) and stays plain text, while the first stays linked under .github. |
| 6 | # Usage: sh om/site/test-ledger-links.sh [DIST] (exit 0 pass, 1 fail) |
| 7 | dist=${1:-dist} |
| 8 | page=$dist/now/index.html |
| 9 | [ -s "$page" ] || { echo "test-ledger-links: FAIL no $page"; exit 1; } |
| 10 | fail=0 |
| 11 | grep -qF 'works/cudaplusplus@62a663d' "$page" || { echo 'test-ledger-links: FAIL L402 token absent'; fail=1; } |
| 12 | if grep -qF '>works/cudaplusplus@62a663d</a>' "$page"; then |
| 13 | echo 'test-ledger-links: FAIL works/cudaplusplus@62a663d is linked (repository carried past ";")'; fail=1 |
| 14 | fi |
| 15 | grep -qF 'href="https://interplane.io/drakestapleton/.github/commit/ef6abb8"' "$page" \ |
| 16 | || { echo 'test-ledger-links: FAIL profile/cudaplusplus@ef6abb8 lost its .github link'; fail=1; } |
| 17 | [ $fail = 0 ] && echo 'test-ledger-links: PASS' |
| 18 | exit $fail |