cabal now installs git-annex-shell as a symlink to git-annex.

This commit is contained in:
Joey Hess 2012-04-14 14:01:14 -04:00
parent 142bde13cd
commit 1ca41044e8
4 changed files with 17 additions and 18 deletions

View file

@ -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)

1
debian/changelog vendored
View file

@ -8,6 +8,7 @@ git-annex (3.20120407) UNRELEASED; urgency=low
Damerau-Levenshtein edit distance, just as git does. This adds a build
dependency on the haskell edit-distance library.
* 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

View file

@ -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

View file

@ -36,10 +36,6 @@ Executable git-annex
Other-Modules: Utility.Touch
C-Sources: Utility/libdiskfree.c
Executable git-annex-shell
Main-Is: git-annex-shell.hs
C-Sources: Utility/libdiskfree.c
Test-Suite test
Type: exitcode-stdio-1.0
Main-Is: test.hs