#!/usr/bin/env bash # # Launch magic in batch / no-GUI mode (-dnull) straight from the build tree. # Generated by configure from scripts/run_magicnull.sh.in. # # Interactive use sources the Tcl startup (magic.tcl) automatically from CAD_ROOT. # For a non-interactive script piped on stdin, source magic.tcl yourself first: # printf 'source %s/magic.tcl\n\n' "$CAD_ROOT/magic/tcl" | ./run_magicnull.sh set -eu here="$(cd "$(dirname "$0")" && pwd)" . "$here/magic_run_common.sh" magic_require_built magic_stage exec "$MAGIC_TCL/magicdnull" -dnull -nowrapper "$@"