mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 17:39:28 +02:00
(Take two) + Adds a GitHub Actions flow that builds an AppImage (see AppImages.org) that can produce a monolithic magic binary ~ Fix a portability issue in tcltk/magic.sh.in This binary should theoretically work on any Linux distro with Glibc 2.3+ and Cairo 1.8+, which is any up to date distro in the last decade.
7 lines
245 B
Bash
Executable File
7 lines
245 B
Bash
Executable File
#!/bin/sh
|
|
export CURDIR=$(dirname $(readlink -f "${0}"))
|
|
export PATH="${CURDIR}/bin":$PATH
|
|
export LD_LIBRARY_PATH=${CURDIR}/lib:$LD_LIBRARY_PATH
|
|
export CAD_ROOT="${CURDIR}/lib"
|
|
export MAGIC_WISH="${CURDIR}/bin/wish"
|
|
exec "${CURDIR}/bin/magic" $@ |