#!/usr/bin/env bash # # Launch magic (GUI) straight from the build tree -- no `make install` needed. # Generated by configure from scripts/run_magic.sh.in. # # On first run it stages ${builddir}/CAD_DIR (symlinks into the build and source # trees), then exports CAD_ROOT so magic finds its sys files and Tcl runtime # there. This is a Cairo/X11 GUI build; magic picks its default device, and you # can override on the command line, e.g.: ./run_magic.sh -d XR foo.mag set -eu here="$(cd "$(dirname "$0")" && pwd)" . "$here/magic_run_common.sh" magic_require_built magic_stage exec "$MAGIC_TCL/magicexec" -- "$@"