source: adblock2privoxy/Setup.hs @ 5ee1d7d

Last change on this file since 5ee1d7d was 5ee1d7d, checked in by zubr <a@…>, 5 years ago

before debianizaton

  • Property mode set to 100644
File size: 824 bytes
Line 
1import Distribution.Simple
2import Distribution.Simple.PreProcess
3import Distribution.PackageDescription (PackageDescription(..), Executable(..))
4import System.Process ( rawSystem )
5import System.FilePath ( (</>) )
6import System.Directory ( findExecutable )
7import Distribution.Simple.Utils (info)
8
9main :: IO ()
10main = defaultMainWithHooks $ simpleUserHooks { 
11    hookedPreProcessors = []
12      -- ensure that adblock2privoxy-distrib doesn't get installed to bindir
13    , copyHook = \pkgdescr ->
14         (copyHook simpleUserHooks) pkgdescr{ executables =
15            [x | x <- executables pkgdescr, exeName x /= "adblock2privoxy-distrib"] }
16    , instHook = \pkgdescr ->
17         (instHook simpleUserHooks) pkgdescr{ executables =
18            [x | x <- executables pkgdescr, exeName x /= "adblock2privoxy-distrib"] }
19    }
Note: See TracBrowser for help on using the repository browser.