mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 01:24:51 +02:00
refactor(tcl-examples): rename TCL scripts, drop dead pcell.tcl, fix comments and naming
Rename *-magic.tcl scripts to *-tcl.tcl to match the -tcl.js test naming convention. Delete the old bare-command pcell.tcl (used cellname create, no magic:: prefix) and promote pcell-magic.tcl to pcell.tcl. Fix misleading comment in magicWasm.c: Tclmagic_Init only bootstraps the interpreter; magic:: commands are registered separately by TclmagicRegisterCommands after magicMainInit. Align comment block dashes in TclmagicRegisterCommands to match tclmagic.c style (62 dashes). Replace intubun/tcl references in build scripts and CI with tcltk/tcl to match the actual pinned repo in npm/tcl.ref. Also run both test suites when build.sh is invoked with --test.
This commit is contained in:
committed by
R. Timothy Edwards
parent
ed576b23c8
commit
db36e896e6
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build intubun/tcl as a static WASM library for linking into magic.wasm.
|
||||
# Build tcltk/tcl as a static WASM library for linking into magic.wasm.
|
||||
#
|
||||
# This script does NOT modify the TCL source tree — the build is fully
|
||||
# out-of-source. configure is invoked from the build directory inside magic,
|
||||
@@ -53,7 +53,7 @@ fi
|
||||
# not a cryptic `set: pipefail: invalid option name` from bash.
|
||||
if head -1 "$TCL_SRC/unix/configure" | grep -q $'\r'; then
|
||||
echo "Error: $TCL_SRC/unix/configure has CRLF line endings." >&2
|
||||
echo " Reclone intubun/tcl with: git -c core.autocrlf=false clone …" >&2
|
||||
echo " Reclone tcltk/tcl with: git -c core.autocrlf=false clone …" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user