elix-link

来自「这是一个Linux下的集成开发环境」· 代码 · 共 62 行

TXT
62
字号
#! /bin/sh# Usage: elix-link ARGS -- LINKER-ARGSpfx=output=mode=while test "$#" -gt 0; do   arg="$1"   shift   if test "$arg" = "--"; then      break   fi   case "$arg" in    --prefix)       pfx="$1"       shift       ;;    --output)       output="$1"       shift       ;;    --mode)       mode="--$1"       shift       ;;   esacdoneif test -z "$pfx" || test -z "$1" || test -z "$output"; then   echo "elix-link: required option not found" 1>&2   exit 1fi# The `.olix' file is the saved `.runcfg' file from the last time we# actually invoked config.pl.  It's rather ugly that we do this, but# it is easier to take this approach than it is to change the# Makefiles to do this explicitly.run_config=yesif test -f "$pfx.olix"; then   if cmp -s "$pfx.olix" "$pfx.runcfg" > /dev/null 2>&1; then      run_config=no   fifiif test "$run_config" = yes; then   # Run config.pl and update   ${SHELL-/bin/sh} "$pfx.runcfg" || exit 1   cp "$pfx.runcfg" "$pfx.olix"fi# Run the actual link"$@" -o "$output" || exit 1# Clean up with link.pl.exec link.pl --app="$output" --elix-cfg="$pfx.elix" $mode

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?