packages feed

yuuko-2010.1.23: Nemesis

nemesis = do
  
  clean
    [ "**/*.hi"
    , "**/*.o"
    , "manifest"
    ]
    
  desc "prepare cabal dist"
  task "dist" $ do
    sh "cabal clean"
    sh "cabal configure"
    sh "cabal sdist"

  desc "start console"
  task "i" (sh "ghci -isrc -Wall src/Text/HTML/Yuuko.hs")
  
  desc "start main"
  task "main" (sh "ghci -isrc -Wall src/Main.hs")

  desc "start cookbook"
  task "c" (sh "ghci -isrc -Wall src/Text/HTML/Yuuko/Cookbook.hs")
  
  desc "test utf8"
  task "test-utf8" (sh "runghc -isrc src/Main.hs '//div' < test/utf8.html")
  
  desc "put all .hs files in manifest"
  task "manifest" $ do
    sh "find . | grep 'hs$' > manifest"

  desc "show sloc"
  task "stat" $ do
    sh "cloc -match-f=hs$ --quiet src --no3"