Fork me on GitHub

The lower layer in the Script hierarchy below Sources.

Haddocks

Link the file from source to host file system somewhere. The first filepath is relative to source root and the second is to biegunka root.

link :: FilePath -> FilePath -> Script Actions ()

Link the source to host file system somewhere. The filepath is relative to biegunka root.

register :: FilePath -> Script Actions ()

Copy

Copy a regular file from source to the host file system. The first filepath is relative to source root and the second is to biegunka root.

copyFile :: FilePath -> FilePath -> Script Actions ()

Copy a directory from source to the host file system. The first filepath is relative to source root and the second is to biegunka root.

copyDirectory :: FilePath -> FilePath -> Script Actions ()

Copy a regular file or directory (whatever happens to be on the path) from source to the host file system. The first filepath is relative to source root and the second is to biegunka root.

copy :: FilePath -> FilePath -> Script Actions ()

Copy the file from source to host file system somewhere. Substitute any templates in it. (Currently HStringTemplate syntax is used.) The first filepath is relative to source root and the second is to biegunka root.

substitute :: FilePath -> FilePath -> Script Actions ()

Patch

Apply patch with given settings to the filepath. The first filepath is relative to source root and the second is to biegunka root.

data PatchSpec = PatchSpec { strip :: Int, reversely :: Bool }

patch :: FilePath -> FilePath -> PatchSpec -> Script Actions ()

Running external programs

Run command in the default shell (it will probably be bash on most systems).

shell :: String -> Script Actions ()

Run arbitrary external command.

raw :: FilePath -> [String] -> Script Actions ()