diff options
author | Łukasz Hanuszczak <lukasz.hanuszczak@gmail.com> | 2015-08-24 23:14:18 +0200 |
---|---|---|
committer | Łukasz Hanuszczak <lukasz.hanuszczak@gmail.com> | 2015-08-24 23:14:18 +0200 |
commit | 3c88a8a3336b26939738d481a60233821b926adb (patch) | |
tree | 9d48905454d2c88d5ef45ebb57e71c676abf856a /hypsrc-test/accept.hs | |
parent | 5b427d2a86f09832ba4e86a314abc821e4715aae (diff) |
Get rid of obsolete testing utilities.
Diffstat (limited to 'hypsrc-test/accept.hs')
-rwxr-xr-x | hypsrc-test/accept.hs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/hypsrc-test/accept.hs b/hypsrc-test/accept.hs deleted file mode 100755 index 4606b2df..00000000 --- a/hypsrc-test/accept.hs +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env runhaskell -{-# LANGUAGE CPP #-} - - -import System.Directory -import System.FilePath -import System.Environment - -import Utils - - -main :: IO () -main = do - args <- getArgs - files <- filter isHtmlFile <$> getDirectoryContents outDir' - let files' = if args == ["--all"] || args == ["-a"] - then files - else filter ((`elem` args) . takeBaseName) files - mapM_ copy files' - where - isHtmlFile = (== ".html") . takeExtension - - -copy :: FilePath -> IO () -copy file = do - content <- stripLocalReferences <$> readFile (outDir' </> file) - writeFile (refDir' </> file) content |