mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 12:09:30 +02:00
Fixed Unix2Amiga path conversions for external asm script
git-svn-id: trunk@1816 -
This commit is contained in:
parent
548a38ac21
commit
1432660c80
@ -277,6 +277,19 @@ end;
|
|||||||
Amiga Asm Response
|
Amiga Asm Response
|
||||||
****************************************************************************}
|
****************************************************************************}
|
||||||
|
|
||||||
|
{ * PathConv is required, since Amiga commands can't handle Unix-style
|
||||||
|
relative paths used by the compiler (KB) * }
|
||||||
|
|
||||||
|
{$IF DEFINED(MORPHOS) OR DEFINED(AMIGA)}
|
||||||
|
{ * PathConv is implemented in the system unit! * }
|
||||||
|
function PathConv(path: string): string; external name 'PATHCONV';
|
||||||
|
{$ELSE}
|
||||||
|
function PathConv(path: string): string;
|
||||||
|
begin
|
||||||
|
PathConv:=path;
|
||||||
|
end;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
Constructor TAsmScriptAmiga.Create (Const ScriptName : String);
|
Constructor TAsmScriptAmiga.Create (Const ScriptName : String);
|
||||||
begin
|
begin
|
||||||
Inherited Create(ScriptName);
|
Inherited Create(ScriptName);
|
||||||
@ -292,7 +305,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
Add(maybequoted(command)+' '+Options);
|
Add(maybequoted(command)+' '+Options);
|
||||||
{ There is a problem here,
|
{ There is a problem here,
|
||||||
as allways return with a non zero error value PM }
|
as always return with a non zero error value PM }
|
||||||
Add('if error');
|
Add('if error');
|
||||||
Add('why');
|
Add('why');
|
||||||
Add('skip asmend');
|
Add('skip asmend');
|
||||||
@ -316,13 +329,13 @@ end;
|
|||||||
|
|
||||||
Procedure TAsmScriptAmiga.AddDeleteCommand (Const FileName : String);
|
Procedure TAsmScriptAmiga.AddDeleteCommand (Const FileName : String);
|
||||||
begin
|
begin
|
||||||
Add('Delete ' + MaybeQuoted (ScriptFixFileName(FileName)));
|
Add('Delete ' + PathConv(MaybeQuoted(ScriptFixFileName(FileName))) + ' All Quiet');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
Procedure TAsmScriptAmiga.AddDeleteDirCommand (Const FileName : String);
|
Procedure TAsmScriptAmiga.AddDeleteDirCommand (Const FileName : String);
|
||||||
begin
|
begin
|
||||||
Add('Delete ' + MaybeQuoted (ScriptFixFileName(FileName)));
|
Add('Delete ' + PathConv(MaybeQuoted(ScriptFixFileName(FileName))));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user