cabal now installs git-annex-shell as a symlink to git-annex.
This commit is contained in:
parent
142bde13cd
commit
1ca41044e8
4 changed files with 17 additions and 18 deletions
17
Setup.hs
17
Setup.hs
|
@ -1,12 +1,27 @@
|
|||
{- cabal setup file -}
|
||||
|
||||
import Distribution.Simple
|
||||
import Distribution.Simple.LocalBuildInfo
|
||||
import Distribution.Simple.Setup
|
||||
import System.Cmd
|
||||
import System.FilePath
|
||||
|
||||
import qualified Build.Configure as Configure
|
||||
|
||||
main = defaultMainWithHooks simpleUserHooks { preConf = configure }
|
||||
main = defaultMainWithHooks simpleUserHooks
|
||||
{ preConf = configure
|
||||
, instHook = install
|
||||
}
|
||||
|
||||
configure _ _ = do
|
||||
Configure.run Configure.tests
|
||||
return (Nothing, [])
|
||||
|
||||
install pkg_descr lbi userhooks flags = do
|
||||
r <- (instHook simpleUserHooks) pkg_descr lbi userhooks flags
|
||||
_ <- rawSystem "ln" ["-sf", "git-annex",
|
||||
bindir installDirs </> "git-annex-shell"]
|
||||
return r
|
||||
where
|
||||
installDirs = absoluteInstallDirs pkg_descr lbi $
|
||||
fromFlag (copyDest defaultCopyFlags)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue