diff options
author | Erich Eckner <git@eckner.net> | 2015-10-27 11:15:45 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2015-10-27 11:15:45 +0100 |
commit | ac46c15719ed56a9a9c0e48a8ece4b5b927e8bb0 (patch) | |
tree | 878a095f9184b757984176ecc6d2071905c6b546 | |
parent | 532d3e60aead3c722805518a20fe347d9abcd7ae (diff) | |
download | units-ac46c15719ed56a9a9c0e48a8ece4b5b927e8bb0.tar.xz |
Output für Units nun auch in tempDir
-rw-r--r-- | gitupdateunit.pas | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gitupdateunit.pas b/gitupdateunit.pas index 64e820e..fde217a 100644 --- a/gitupdateunit.pas +++ b/gitupdateunit.pas @@ -34,6 +34,8 @@ initialization if runCommandInDir(baseDir+'units','/usr/bin/git',args,output) then begin updated:=updated or (output<>'Already up-to-date.'#10); if updated then begin + tmpDir:=mkTemp('-d /tmp/fpc.XXXXXX'); + mkdir(tmpDir+'/lib'); setlength(args,15); args[0]:='-MObjFPC'; args[1]:='-Scghi'; @@ -44,16 +46,15 @@ initialization args[6]:='-gl'; args[7]:='-l'; args[8]:='-vewnhibq'; - args[9]:='-Filib/x86_64-linux'; + args[9]:='-Fi'+tmpDir+'/lib'; args[10]:='-Fu../units'; args[11]:='-Fu.'; - args[12]:='-FUlib/x86_64-linux'; + args[12]:='-FU'+tmpDir+'/lib'; args[13]:=myDir+extractFileName(paramstr(0)); if fileexists(args[13]+'.lpr') then args[13]:=args[13]+'.lpr' else args[13]:=args[13]+'.pas'; - tmpDir:=mkTemp('-d /tmp/fpc.XXXXXX'); args[14]:='-o'+tmpDir+'/output'; if runCommandInDir(myDir,'/usr/bin/fpc',args,output) then begin setlength(args,2); |