Add the installation bin directory to the path internally in wrapper scripts

This allows invoking the script frontends via an explicit path,
without adding the directory to the PATH environment variable before
calling them.
This commit is contained in:
Martin Storsjö committed 2018-05-07 10:24:24 +03:00
1 parent fa08e722ed
commit 5899f4f536
4 files changed
+12

No files matched your search

+3
View File
@@ -1,5 +1,8 @@
#!/bin/sh
DIR="$(cd "$(dirname "$0")" && pwd)"
export PATH=$DIR:$PATH
TARGET="$(basename $0 | sed 's/-[^-]*$//')"
ARCH=$(echo $TARGET | sed 's/-.*//')
case $ARCH in
+3
View File
@@ -1,5 +1,8 @@
#!/bin/sh
DIR="$(cd "$(dirname "$0")" && pwd)"
export PATH=$DIR:$PATH
if [ "$1" = "--help" ]; then
cat<<EOF
GNU ld impersonation
+3
View File
@@ -1,5 +1,8 @@
#!/bin/sh
DIR="$(cd "$(dirname "$0")" && pwd)"
export PATH=$DIR:$PATH
if [ "$1" = "-f" ]; then
# libtool can try to run objdump -f and wants to see certain strings in
# the output, to accept it being a windows (import) library
+3
View File
@@ -27,6 +27,9 @@
#
# For more information, please refer to <http://unlicense.org/>
DIR="$(cd "$(dirname "$0")" && pwd)"
export PATH=$DIR:$PATH
print_version () {
cat <<EOF >&2
version: LLVM windres (GNU Binutils compatible) 0.1