propellor spin
This commit is contained in:
parent
aa986724a2
commit
95f78a0586
|
@ -161,10 +161,10 @@ sendPrecompiled hn = void $ actionMessage ("Uploading locally compiled propellor
|
||||||
createDirectoryIfMissing True (tmpdir </> shimdir)
|
createDirectoryIfMissing True (tmpdir </> shimdir)
|
||||||
changeWorkingDirectory (tmpdir </> shimdir)
|
changeWorkingDirectory (tmpdir </> shimdir)
|
||||||
me <- readSymbolicLink "/proc/self/exe"
|
me <- readSymbolicLink "/proc/self/exe"
|
||||||
me' <- catchDefaultIO me (readSymbolicLink me)
|
createDirectoryIfMissing True "bin"
|
||||||
shim <- Shim.setup me' "."
|
unlessM (boolSystem "cp" [File me, File "bin/propellor"]) $
|
||||||
when (shim /= "propellor") $
|
errorMessage "failed copying in propellor"
|
||||||
renameFile shim "propellor"
|
void $ Shim.setup "bin/propellor" "."
|
||||||
changeWorkingDirectory tmpdir
|
changeWorkingDirectory tmpdir
|
||||||
withTmpFile "propellor.tar." $ \tarball _ -> allM id
|
withTmpFile "propellor.tar." $ \tarball _ -> allM id
|
||||||
[ boolSystem "strip" [File me]
|
[ boolSystem "strip" [File me]
|
||||||
|
|
Loading…
Reference in New Issue