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/cortex/blob/main/tools/dev/cc.sh # cortex aien-dev/cortex 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 `cortex / tools / dev / cc.sh` 5 lines ยท 366 bytes Raw Blame History 1 #!/bin/sh 2 # usage: cc.sh out files... (dev helper: one OM-2 unit, pinned omc via tools/omc.sh) 3 out=$1; shift 4 OMC=$(sh "$(dirname "$0")/../omc.sh") || exit 1 5 (echo om2; cat "$@") > $out.om; "$OMC" < $out.om > $out 2> $out.err; rc=$?; echo rc=$rc; cat $out.err; L=$(sed -n 's/.*line \([0-9]*\).*/\1/p' $out.err); [ -n "$L" ] && sed -n "${L}p" $out.om; chmod +x $out