nasty hack to build when hS3 is not available
So, it would be nicer to just use Cabal and take advantage of its conditional compilation support. But, Cabal seems to lack good support for a package with an internal library that is used by multiple executables. It wants to build everything twice or more. That's too slow for me. Anyway, fairly soon, I expect to upgrade hS3 to a requirment, and I can just revert this.
This commit is contained in:
parent
def137b0cc
commit
9c96d86502
5 changed files with 29 additions and 7 deletions
13
Remote/S3stub.hs
Normal file
13
Remote/S3stub.hs
Normal file
|
@ -0,0 +1,13 @@
|
|||
-- stub for when hS3 is not available
|
||||
module Remote.S3 (remote) where
|
||||
|
||||
import RemoteClass
|
||||
import Types
|
||||
|
||||
remote :: RemoteType Annex
|
||||
remote = RemoteType {
|
||||
typename = "S3",
|
||||
enumerate = return [],
|
||||
generate = error "S3 not enabled",
|
||||
setup = error "S3 not enabled"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue