summaryrefslogtreecommitdiff
path: root/Remote/S3stub.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-30 01:32:05 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-30 01:32:05 -0400
commit9c96d86502c521cf78228f816e33ac456fb2ee59 (patch)
tree1dfdc771e6e6d02162f996c0d96551a0cfbba9c7 /Remote/S3stub.hs
parentdef137b0cc0c86d9cd976c11b59f7ba0669c0735 (diff)
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.
Diffstat (limited to 'Remote/S3stub.hs')
-rw-r--r--Remote/S3stub.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Remote/S3stub.hs b/Remote/S3stub.hs
new file mode 100644
index 000000000..0d6ec47de
--- /dev/null
+++ b/Remote/S3stub.hs
@@ -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"
+}