Safe Haskell | None |
---|
Generate a package Debianization from Cabal data and command line options.
- cabalDebian :: IO ()
- callDebianize :: [String] -> IO ()
- runDebianize :: [String] -> IO Bool
- debianize :: FilePath -> Atoms -> IO ()
- debianization :: FilePath -> Atoms -> IO Atoms
- writeDebianization :: FilePath -> Atoms -> IO ()
- describeDebianization :: Atoms -> String
- compareDebianization :: Atoms -> Atoms -> String
- validateDebianization :: Atoms -> Atoms -> Either String ()
Documentation
cabalDebian :: IO ()Source
The main function for the cabal-debian executable.
callDebianize :: [String] -> IO ()Source
Compile the given arguments into an Atoms value and run the
debianize function. This is basically equivalent to cabal-debian
--debianize
, except that the command line arguments come from the
function parameter.
runDebianize :: [String] -> IO BoolSource
Put an argument list into the CABALDEBIAN
environment variable
and then run the script in debian/Debianize.hs. If this exists and
succeeds the return value is True, it may be assumed that a
debianization was created in the debian subdirectory of the current
directory. This is used to create customized debianizations that
are to sophisticated for the command line argument interface
available to the cabal-debian executable.
debianize :: FilePath -> Atoms -> IO ()Source
Generate a debianization, and then either validate, describe, or write it out dependeing on the command line arguments.
debianization :: FilePath -> Atoms -> IO AtomsSource
Given an Atoms value, get any additional configuration information from the environment, read the cabal package description and possibly the debian/changelog file, then generate and return the new debianization (along with the data directory computed from the cabal package description.)
writeDebianization :: FilePath -> Atoms -> IO ()Source
Write the files of the debianization d
to the directory top
.
compareDebianization :: Atoms -> Atoms -> StringSource
Compare the existing debianization in top
to the generated one
new
, returning a string describing the differences.