Kaydet (Commit) 79233d98 authored tarafından Michael Stahl's avatar Michael Stahl

bin/run: add WNT support

Change-Id: I9dd1ae23d27c5733770314ca907b5d36b749fd74
üst 71c58fce
......@@ -9,7 +9,29 @@
# simple wrapper script to run non-installed executables from workdir
if [ $(uname) = Darwin ]; then
if uname | grep -i CYGWIN >/dev/null; then
dir=$(realpath "$(pwd)")
while test ! -d "${dir}/instdir/program" ; do
if test "${dir}" = "/"; then
echo "error: cannot find \"program\" dir from \"$(pwd)\""
exit 1
fi
dir=$(realpath "${dir}/..")
done
exedir="${dir}"/workdir/LinkTarget/Executable
export URE_BOOTSTRAP=file:///$(cygpath -m "${dir}")/instdir/program/fundamental.ini
export PATH=${PATH:+$PATH:}"${dir}"/instdir/program
echo "setting URE_BOOTSTRAP to: ${URE_BOOTSTRAP}"
echo "setting search path to: ${PATH}"
echo "execing: ${exedir}/$1"
exec "${exedir}"/$@
elif [ $(uname) = Darwin ]; then
dir=$(pwd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment