Skip to content

Commit

Permalink
use mingw tools if no unix tools available in /usr/local/sbin:/usr/lo…
Browse files Browse the repository at this point in the history
…cal/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
  • Loading branch information
tenbaht committed Nov 6, 2017
1 parent c51f5e7 commit e36adf3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sduino/hardware/sduino/tools/wrapper/sdar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ WHITE='\033[1;37m'
OFF='\033[0m'
fi

# check if cp is in the path, add our binaries to the PATH if needed
cp --version >/dev/null 2>&1 || PATH=${0%/wrapper/*}/win:$PATH


# echo the full command line in cyan:
>&2 echo -ne "${CYAN}"
Expand Down
3 changes: 3 additions & 0 deletions sduino/hardware/sduino/tools/wrapper/sdcc-link.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ WHITE='\033[1;37m'
OFF='\033[0m'
fi

# check if cp is in the path, add our binaries to the PATH if needed
cp --version >/dev/null 2>&1 || PATH=${0%/wrapper/*}/win:$PATH

SDCC="$1"
shift

Expand Down
3 changes: 3 additions & 0 deletions sduino/hardware/sduino/tools/wrapper/sdcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ WHITE='\033[1;37m'
OFF='\033[0m'
fi

# check if cp is in the path, add our binaries to the PATH if needed
cp --version >/dev/null 2>&1 || PATH=${0%/wrapper/*}/win:$PATH


# echo the full command line in cyan:
>&2 echo -ne "${CYAN}"
Expand Down

0 comments on commit e36adf3

Please sign in to comment.