mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 01:49:26 +02:00
* use sametext instead of converting case
This commit is contained in:
parent
6e964d153e
commit
5130e82af0
utils/fpcres
@ -116,7 +116,7 @@ begin
|
||||
end;
|
||||
tmp:=ChangeFileExt(ExtractFileName(params.InputFiles[0]),
|
||||
'.jar');
|
||||
if lowercase(tmp)=lowercase(params.InputFiles[0]) then
|
||||
if sametext(tmp,params.InputFiles[0]) then
|
||||
tmp:=tmp+'.jar';
|
||||
params.OutputFile:=tmp;
|
||||
end;
|
||||
|
@ -161,7 +161,7 @@ begin
|
||||
end;
|
||||
tmp:=ChangeFileExt(ExtractFileName(params.InputFiles[0]),
|
||||
ObjFormats[CurrentTarget.objformat].ext);
|
||||
if lowercase(tmp)=lowercase(params.InputFiles[0]) then
|
||||
if SameText(tmp,params.InputFiles[0]) then
|
||||
tmp:=tmp+ObjFormats[CurrentTarget.objformat].ext;
|
||||
params.OutputFile:=tmp;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user