remove S3stub stuff

Let's keep that in a no-s3 branch, which can be merged into eg,
debian-stable.
This commit is contained in:
Joey Hess 2012-01-05 23:14:10 -04:00
parent c371c40a88
commit f534fcc7b1
6 changed files with 13 additions and 32 deletions

View file

@ -10,7 +10,7 @@ GHCMAKE=ghc $(GHCFLAGS) --make
bins=git-annex git-annex-shell git-union-merge bins=git-annex git-annex-shell git-union-merge
mans=git-annex.1 git-annex-shell.1 git-union-merge.1 mans=git-annex.1 git-annex-shell.1 git-union-merge.1
sources=Build/SysConfig.hs Utility/StatFS.hs Utility/Touch.hs Remote/S3.hs sources=Build/SysConfig.hs Utility/StatFS.hs Utility/Touch.hs
all=$(bins) $(mans) docs all=$(bins) $(mans) docs
@ -33,18 +33,7 @@ Build/SysConfig.hs: configure.hs Build/TestConfig.hs
hsc2hs $< hsc2hs $<
perl -i -pe 's/^{-# INCLUDE.*//' $@ perl -i -pe 's/^{-# INCLUDE.*//' $@
Remote/S3.hs: $(bins): $(sources)
@ln -sf S3real.hs Remote/S3.hs
Remote/S3.o: Remote/S3.hs
@if ! $(GHCMAKE) Remote/S3.hs; then \
ln -sf S3stub.hs Remote/S3.hs; \
echo "** building without S3 support"; \
fi
sources: $(sources)
$(bins): sources Remote/S3.o
$(GHCMAKE) $@ $(GHCMAKE) $@
git-annex.1: doc/git-annex.mdwn git-annex.1: doc/git-annex.mdwn

View file

@ -55,14 +55,14 @@ import qualified Remote.Web
import qualified Remote.Hook import qualified Remote.Hook
remoteTypes :: [RemoteType] remoteTypes :: [RemoteType]
remoteTypes = catMaybes remoteTypes =
[ Just Remote.Git.remote [ Remote.Git.remote
, Remote.S3.remote , Remote.S3.remote
, Just Remote.Bup.remote , Remote.Bup.remote
, Just Remote.Directory.remote , Remote.Directory.remote
, Just Remote.Rsync.remote , Remote.Rsync.remote
, Just Remote.Web.remote , Remote.Web.remote
, Just Remote.Hook.remote , Remote.Hook.remote
] ]
{- Builds a list of all available Remotes. {- Builds a list of all available Remotes.

View file

@ -28,8 +28,8 @@ import Crypto
import Annex.Content import Annex.Content
import Utility.Base64 import Utility.Base64
remote :: Maybe RemoteType remote :: RemoteType
remote = Just $ RemoteType { remote = RemoteType {
typename = "S3", typename = "S3",
enumerate = findSpecialRemotes "s3", enumerate = findSpecialRemotes "s3",
generate = gen, generate = gen,
@ -58,7 +58,7 @@ gen' r u c cst =
hasKeyCheap = False, hasKeyCheap = False,
config = c, config = c,
repo = r, repo = r,
remotetype = fromJust remote remotetype = remote
} }
s3Setup :: UUID -> RemoteConfig -> Annex RemoteConfig s3Setup :: UUID -> RemoteConfig -> Annex RemoteConfig

View file

@ -1,7 +0,0 @@
-- stub for when hS3 is not available
module Remote.S3 (remote) where
import Types
remote :: Maybe RemoteType
remote = Nothing

1
debian/changelog vendored
View file

@ -1,7 +1,6 @@
git-annex (3.20120106) UNRELEASED; urgency=low git-annex (3.20120106) UNRELEASED; urgency=low
* Support unescaped repository urls, like git does. * Support unescaped repository urls, like git does.
* Don't list S3 as a remote type when built without S3 support.
-- Joey Hess <joeyh@debian.org> Thu, 05 Jan 2012 14:29:30 -0400 -- Joey Hess <joeyh@debian.org> Thu, 05 Jan 2012 14:29:30 -0400

View file

@ -30,7 +30,7 @@ To build and use git-annex, you will need:
* [TestPack](http://hackage.haskell.org/cgi-bin/hackage-scripts/package/testpack) * [TestPack](http://hackage.haskell.org/cgi-bin/hackage-scripts/package/testpack)
* [QuickCheck 2](http://hackage.haskell.org/package/QuickCheck) * [QuickCheck 2](http://hackage.haskell.org/package/QuickCheck)
* [HTTP](http://hackage.haskell.org/package/HTTP) * [HTTP](http://hackage.haskell.org/package/HTTP)
* [hS3](http://hackage.haskell.org/package/hS3) (optional, but recommended) * [hS3](http://hackage.haskell.org/package/hS3)
* [json](http://hackage.haskell.org/package/json) * [json](http://hackage.haskell.org/package/json)
* Shell commands * Shell commands
* [git](http://git-scm.com/) * [git](http://git-scm.com/)