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 -}
|
{- cabal setup file -}
|
||||||
|
|
||||||
import Distribution.Simple
|
import Distribution.Simple
|
||||||
|
import Distribution.Simple.LocalBuildInfo
|
||||||
|
import Distribution.Simple.Setup
|
||||||
import System.Cmd
|
import System.Cmd
|
||||||
|
import System.FilePath
|
||||||
|
|
||||||
import qualified Build.Configure as Configure
|
import qualified Build.Configure as Configure
|
||||||
|
|
||||||
main = defaultMainWithHooks simpleUserHooks { preConf = configure }
|
main = defaultMainWithHooks simpleUserHooks
|
||||||
|
{ preConf = configure
|
||||||
|
, instHook = install
|
||||||
|
}
|
||||||
|
|
||||||
configure _ _ = do
|
configure _ _ = do
|
||||||
Configure.run Configure.tests
|
Configure.run Configure.tests
|
||||||
return (Nothing, [])
|
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)
|
||||||
|
|
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -8,6 +8,7 @@ git-annex (3.20120407) UNRELEASED; urgency=low
|
||||||
Damerau-Levenshtein edit distance, just as git does. This adds a build
|
Damerau-Levenshtein edit distance, just as git does. This adds a build
|
||||||
dependency on the haskell edit-distance library.
|
dependency on the haskell edit-distance library.
|
||||||
* Renamed diskfree.c to avoid OSX case insensativity bug.
|
* Renamed diskfree.c to avoid OSX case insensativity bug.
|
||||||
|
* cabal now installs git-annex-shell as a symlink to git-annex.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Sun, 08 Apr 2012 12:23:42 -0400
|
-- Joey Hess <joeyh@debian.org> Sun, 08 Apr 2012 12:23:42 -0400
|
||||||
|
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
{- git-annex-shell main program
|
|
||||||
-
|
|
||||||
- Copyright 2012 Joey Hess <joey@kitenet.net>
|
|
||||||
-
|
|
||||||
- Licensed under the GNU GPL version 3 or higher.
|
|
||||||
-}
|
|
||||||
|
|
||||||
import System.Environment
|
|
||||||
|
|
||||||
import GitAnnexShell
|
|
||||||
|
|
||||||
main :: IO ()
|
|
||||||
main = run =<< getArgs
|
|
|
@ -36,10 +36,6 @@ Executable git-annex
|
||||||
Other-Modules: Utility.Touch
|
Other-Modules: Utility.Touch
|
||||||
C-Sources: Utility/libdiskfree.c
|
C-Sources: Utility/libdiskfree.c
|
||||||
|
|
||||||
Executable git-annex-shell
|
|
||||||
Main-Is: git-annex-shell.hs
|
|
||||||
C-Sources: Utility/libdiskfree.c
|
|
||||||
|
|
||||||
Test-Suite test
|
Test-Suite test
|
||||||
Type: exitcode-stdio-1.0
|
Type: exitcode-stdio-1.0
|
||||||
Main-Is: test.hs
|
Main-Is: test.hs
|
||||||
|
|
Loading…
Reference in a new issue