debian-build-0.10.1.1: Debian package build sequence tools

Copyright2014-2015 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Debian.Package.Build.Command

Description

This module provides trace-able action instances like commands.

Synopsis

Documentation

chdir :: String -> Trace () Source #

Change directory action

pwd :: IO String Source #

Action to get current working directory

createDirectoryIfMissing :: String -> Trace () Source #

Create directory if missing

renameDirectory :: String -> String -> Trace () Source #

Rename directory action. e.g. renameDirectory from to

renameFile :: String -> String -> Trace () Source #

Rename file action. e.g. renameFile from to

confirmPath :: String -> Trace () Source #

Confirm filepath using ls command

unpackInDir :: FilePath -> FilePath -> Trace () Source #

Unpack .tar.gz under directory.

unpack :: FilePath -> Trace () Source #

Unpack .tar.gz under archive place.

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' :: Maybe String -> [String] -> Trace () Source #

Just call cabal-debian command

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

dpkgParseControl :: FilePath -> Trace Control Source #

Read debian control file

debuild :: FilePath -> [String] -> Trace () Source #

Call debuild under specified directory, with command line options

debi' :: [String] -> Trace () Source #

Just run debi with root user

debi :: FilePath -> [String] -> Trace () Source #

Install packages under specified source package directory

aptGetBuildDepends :: FilePath -> Trace () Source #

Install build-depends

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

withCurrentDir' :: FilePath -> Trace a -> Trace a Source #

Run action under specified directory

readProcess' :: String -> [String] -> String -> Trace String Source #

Run command without shell and get standard output string.

rawSystem' :: String -> [String] -> Trace () Source #

Run command without shell

system' :: String -> Trace () Source #

Run command with shell