Changeset 5ee1d7d in adblock2privoxy for Setup.hs


Ignore:
Timestamp:
Dec 1, 2014 2:41:38 AM (5 years ago)
Author:
zubr <a@…>
Branches:
master
Children:
dda102c
Parents:
b0dcae2
Message:

before debianizaton

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Setup.hs

    r54cefb3 r5ee1d7d  
    11import Distribution.Simple 
    2 main = defaultMain 
     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 TracChangeset for help on using the changeset viewer.