Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienos.com/blob/main/om/site/test-ledger-links.sh # aienos.com Source of www.aienos.com, served from my own hardware Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienos.com / om / site / test-ledger-links.sh` 18 lines ยท 1140 bytes Raw Blame History 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`' "$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