Copyright | 2014-2015 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
This module provides trace-able action instances like commands.
- chdir :: String -> Trace ()
- pwd :: IO String
- createDirectoryIfMissing :: String -> Trace ()
- renameDirectory :: String -> String -> Trace ()
- renameFile :: String -> String -> Trace ()
- confirmPath :: String -> Trace ()
- unpackInDir :: FilePath -> FilePath -> Trace ()
- unpack :: FilePath -> Trace ()
- packInDir' :: FilePath -> FilePath -> FilePath -> Trace ()
- packInDir :: FilePath -> FilePath -> Trace ()
- cabalDebian' :: Maybe String -> [String] -> Trace ()
- cabalDebian :: FilePath -> Maybe String -> [String] -> Trace ()
- packageVersion :: String -> Trace DebianVersion
- dpkgParseChangeLog :: FilePath -> Trace Source
- dpkgParseControl :: FilePath -> Trace Control
- debuild :: FilePath -> [String] -> Trace ()
- debi' :: [String] -> Trace ()
- debi :: FilePath -> [String] -> Trace ()
- aptGetBuildDepends :: FilePath -> Trace ()
- data BuildMode
- modeListFromControl :: Control -> [BuildMode]
- buildPackage :: FilePath -> BuildMode -> [String] -> Trace ()
- build :: FilePath -> [BuildMode] -> Bool -> [String] -> Trace ()
- rebuild :: FilePath -> [BuildMode] -> [String] -> Trace ()
- removeGhcLibrary :: BuildMode -> Hackage -> Trace ()
- withCurrentDir' :: FilePath -> Trace a -> Trace a
- readProcess' :: String -> [String] -> String -> Trace String
- rawSystem' :: String -> [String] -> Trace ()
- system' :: String -> Trace ()
Documentation
createDirectoryIfMissing :: String -> Trace () Source #
Create directory if missing
renameDirectory :: String -> String -> Trace () Source #
Rename directory action. e.g. renameDirectory from to
confirmPath :: String -> Trace () Source #
Confirm filepath using ls command
packInDir' :: FilePath -> FilePath -> FilePath -> Trace () Source #
Pack directory into .tar.gz under working directory
packInDir :: FilePath -> FilePath -> Trace () Source #
Pack directory into same location .tar.gz under working directory
cabalDebian :: FilePath -> Maybe String -> [String] -> Trace () Source #
Call cabal-debian command under specified directory
packageVersion :: String -> Trace DebianVersion Source #
Query debian package version
dpkgParseChangeLog :: FilePath -> Trace Source Source #
Read debian changelog file and try to parse into Source
debuild :: FilePath -> [String] -> Trace () Source #
Call debuild under specified directory, with command line options
debi :: FilePath -> [String] -> Trace () Source #
Install packages under specified source package directory
aptGetBuildDepends :: FilePath -> Trace () Source #
Install build-depends
Build mode, all or binary only
modeListFromControl :: Control -> [BuildMode] Source #
Infer all build mode list from debian control file data
buildPackage :: FilePath -> BuildMode -> [String] -> Trace () Source #
Build package using debuild under specified directory
build :: FilePath -> [BuildMode] -> Bool -> [String] -> Trace () Source #
Build package with specified mode list. Calculated mode list from control is used when not specified build modes.
rebuild :: FilePath -> [BuildMode] -> [String] -> Trace () Source #
Clean and build package using debuild under specified directory
removeGhcLibrary :: BuildMode -> Hackage -> Trace () Source #
Remove ghc library packages under specified source package directory