shake-pack-0.1.2: Shake File Pack Rule

Safe HaskellNone
LanguageHaskell2010

Development.Shake.Pack

Description

Pack given files into the target with tar and bzip. Uses bz2 C library on the system.

main :: IO ()
main = shakeArgs shakeOptions $ do
    want ["pack.tar.bz2"]
    "pack.tar.bz2" *> pack ["ex.txt", "ex2.txt"]

Synopsis

Documentation

pack Source

Arguments

:: [FilePath]

Files to be included in package.

-> FilePath

Resulting package file name including extension. (ex: "package.tar.bz2")

-> Action () 

Pack files into a tar then compress with bzip. For static files, be sure to use getDirectoryFiles to track file changes.