Skip to content
Snippets Groups Projects
Commit ea2e18b6 authored by rswindell's avatar rswindell
Browse files

Finally add nelgins basename/dirname patches (Doh!)

parent f392fe57
Branches
Tags
No related merge requests found
#!/bin/sh
os=`uname | tr "[A-Z]" "[a-z]"`
if [ -x gcc.$os.exe.release/$0 ]
then exec gcc.$os.exe.release/$0 $@
elif [ -x gcc.$os.exe.debug/$0 ]
then exec gcc.$os.exe.debug/$0 $@
elif [ -x *.$os.exe.release/$0 ]
then exec *.$os.exe.release/$0 $@
elif [ -x *.$os.exe.debug/$0 ]
then exec *.$os.exe.debug/$0 $@
elif [ -x *.$os.exe.*/$0 ]
then exec *.$os.exe.*/$0 $@
exename=`basename $0`
dirname=`dirname $0`
if [ -x $dirname\/gcc.$os.exe.release/$exename ]
then exec $dirname\/gcc.$os.exe.release/$exename $@
elif [ -x $dirname\/gcc.$os.exe.debug/$exename ]
then exec $dirname\/gcc.$os.exe.debug/$exename $@
elif [ -x $dirname\/*.$os.exe.release/$exename ]
then exec $dirname\/*.$os.exe.release/$exename $@
elif [ -x $dirname\/*.$os.exe.debug/$exename ]
then exec $dirname\/*.$os.exe.debug/$exename $@
elif [ -x $dirname\/*.$os.exe.*/$exename ]
then exec $dirname\/*.$os.exe.*/$exename $@
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment