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