cabal-debian-4.3.1: Create a debianization for a cabal package

Safe HaskellNone

Debian.Debianize.Output

Description

Wrappers around the debianization function to perform various tasks - output, describe, validate a debianization, run an external script to produce a debianization.

Synopsis

Documentation

doDebianizeAction :: Top -> DebT IO ()Source

Depending on the options in atoms, either validate, describe, or write the generated debianization.

runDebianizeScript :: [String] -> IO BoolSource

Run the script in debian/Debianize.hs with the given command line arguments. Returns True if the script exists and succeeds. In this case it may be assumed that a debianization was created (or updated) in the debian subdirectory of the current directory. In this way we can include a script in a package to produce a customized debianization more sophisticated than the one that would be produced by the cabal-debian executable. An example is included in the debian subdirectory of this library.

writeDebianization :: Top -> DebT IO ()Source

Write the files of the debianization d to the directory top.

describeDebianization :: (MonadIO m, Functor m) => DebT m StringSource

Return a string describing the debianization - a list of file names and their contents in a somewhat human readable format.

compareDebianization :: Atoms -> Atoms -> IO StringSource

Compare the old and new debianizations, returning a string describing the differences.

validateDebianization :: Atoms -> Atoms -> ()Source

Make sure the new debianization matches the existing debianization in several ways - specifically, version number, and the names of the source and binary packages. Some debian packages come with a skeleton debianization that needs to be filled in, this can be used to make sure the debianization we produce is usable.