tools/winegcc: support a trailing / in paths to winebuild
bernhardloos at googlemail.com
Mon Aug 22 11:31:57 CDT 2011
On Mon, Aug 22, 2011 at 5:35 PM, Alexandre Julliard <julliard at winehq.org> wrote:
> Bernhard Loos <bernhardloos at googlemail.com> writes:
>> diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
>> index 284223e..3a7e93a 100644
>> --- a/tools/winegcc/winegcc.c
>> +++ b/tools/winegcc/winegcc.c
>> @@ -1326,6 +1326,7 @@ int main(int argc, char **argv)
>> case 'B':
>> str = strdup(option_arg);
>> + if (strendswith(str, "/")) str[strlen(str) - 1] = 0;
> Why would you want to append a slash to winebuild?
> Alexandre Julliard
> julliard at winehq.org
Bash autocompletation. If you run winegcc manually, and autocomplete
the -B argument to the winebuild dir, you end up with a / at the end.
It's kinda hard to figure out, what goes wrong at this point.
More information about the wine-devel