$ cat /opt/oss-cad-suite/bin/nextpnr-ice40 #!/usr/bin/env bash release_bindir="$(dirname "${BASH_SOURCE[0]}")" release_bindir_abs="$(readlink -f "$release_bindir")" release_topdir_abs="$(readlink -f "$release_bindir/..")" export PATH="$release_bindir_abs:$PATH" export PYTHONHOME="$release_topdir_abs" export PYTHONNOUSERSITE=1 export SSL_CERT_FILE="$release_topdir_abs"/etc/cacert.pem export QT_PLUGIN_PATH="$release_topdir_abs/lib/qt5/plugins" export QT_LOGGING_RULES="*=false" unset QT_QPA_PLATFORMTHEME unset QT_STYLE_OVERRIDE export XDG_DATA_DIRS="$release_topdir_abs"/share export XDG_CONFIG_DIRS="$release_topdir_abs" export XDG_CONFIG_HOME=$HOME/.config/yosyshq export XDG_CACHE_HOME=$HOME/.cache/yosyshq export XDG_DATA_HOME=$HOME/.local/share/yosyshq export XDG_CURRENT_DESKTOP="KDE" export LC_ALL="C" mkdir -p $XDG_CONFIG_HOME $XDG_CACHE_HOME $XDG_DATA_HOME export FONTCONFIG_FILE="$XDG_CONFIG_HOME/fonts.conf" export FONTCONFIG_PATH="$release_topdir_abs/etc/fonts" sed "s|TARGET_DIR|$release_topdir_abs|g" "$release_topdir_abs/etc/fonts/fonts.conf.template" > $FONTCONFIG_FILE exec "$release_topdir_abs"/lib/ld-linux-x86-64.so.2 --inhibit-cache --inhibit-rpath "" --library-path "$release_topdir_abs"/lib "$release_topdir_abs"/libexec/nextpnr-ice40 "$@"