This allows invoking the script frontends via an explicit path, without adding the directory to the PATH environment variable before calling them.
15 lines
300 B
Bash
Executable File
15 lines
300 B
Bash
Executable File
#!/bin/sh
|
|
|
|
DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
export PATH=$DIR:$PATH
|
|
|
|
TARGET="$(basename $0 | sed 's/-[^-]*$//')"
|
|
ARCH=$(echo $TARGET | sed 's/-.*//')
|
|
case $ARCH in
|
|
i686) M=i386 ;;
|
|
x86_64) M=i386:x86-64 ;;
|
|
armv7) M=arm ;;
|
|
aarch64) M=arm64 ;;
|
|
esac
|
|
llvm-dlltool -m $M "$@"
|