moved files around
This commit is contained in:
parent
ec746c511f
commit
737b5d14c9
19 changed files with 28 additions and 30 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -2,7 +2,7 @@
|
|||
*.o
|
||||
test
|
||||
configure
|
||||
SysConfig.hs
|
||||
Build/SysConfig.hs
|
||||
git-annex
|
||||
git-annex-shell
|
||||
git-union-merge
|
||||
|
|
|
@ -24,7 +24,7 @@ import Types
|
|||
import Types.Backend
|
||||
import Types.Key
|
||||
import Utility
|
||||
import qualified SysConfig
|
||||
import qualified Build.SysConfig as SysConfig
|
||||
|
||||
type SHASize = Int
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{- Tests the system and generates SysConfig.hs. -}
|
||||
{- Tests the system and generates Build.SysConfig.hs. -}
|
||||
|
||||
module TestConfig where
|
||||
module Build.TestConfig where
|
||||
|
||||
import System.IO
|
||||
import System.Cmd
|
||||
|
@ -33,12 +33,12 @@ instance Show Config where
|
|||
valuetype (MaybeStringConfig _) = "Maybe String"
|
||||
|
||||
writeSysConfig :: [Config] -> IO ()
|
||||
writeSysConfig config = writeFile "SysConfig.hs" body
|
||||
writeSysConfig config = writeFile "Build/SysConfig.hs" body
|
||||
where
|
||||
body = unlines $ header ++ map show config ++ footer
|
||||
header = [
|
||||
"{- Automatically generated. -}"
|
||||
, "module SysConfig where"
|
||||
, "module Build.SysConfig where"
|
||||
, ""
|
||||
]
|
||||
footer = []
|
|
@ -24,7 +24,7 @@ import Types
|
|||
import Content
|
||||
import Messages
|
||||
import Utility
|
||||
import Touch
|
||||
import Utility.Touch
|
||||
import Locations
|
||||
|
||||
command :: [Command]
|
||||
|
|
|
@ -14,7 +14,7 @@ import System.Directory
|
|||
|
||||
import Command
|
||||
import qualified Backend
|
||||
import qualified Remote.Helper.Url
|
||||
import qualified Utility.Url as Url
|
||||
import qualified Remote.Web
|
||||
import qualified Command.Add
|
||||
import qualified Annex
|
||||
|
@ -53,7 +53,7 @@ download url file = do
|
|||
let dummykey = Backend.URL.fromUrl url
|
||||
let tmp = gitAnnexTmpLocation g dummykey
|
||||
liftIO $ createDirectoryIfMissing True (parentDir tmp)
|
||||
ok <- Remote.Helper.Url.download url tmp
|
||||
ok <- Url.download url tmp
|
||||
if ok
|
||||
then do
|
||||
[(_, backend)] <- Backend.chooseBackends [file]
|
||||
|
|
|
@ -22,7 +22,7 @@ import Types
|
|||
import Utility
|
||||
import UUID
|
||||
import Trust
|
||||
import Remote.Helper.Ssh
|
||||
import Utility.Ssh
|
||||
import qualified Utility.Dot as Dot
|
||||
|
||||
-- a link from the first repository to the second (its remote)
|
||||
|
|
|
@ -12,7 +12,7 @@ import Data.String.Utils
|
|||
import Data.Maybe
|
||||
|
||||
import Command
|
||||
import qualified SysConfig
|
||||
import qualified Build.SysConfig as SysConfig
|
||||
import Version
|
||||
|
||||
command :: [Command]
|
||||
|
|
|
@ -41,7 +41,7 @@ import qualified Annex
|
|||
import qualified AnnexQueue
|
||||
import qualified Branch
|
||||
import Utility
|
||||
import StatFS
|
||||
import Utility.StatFS
|
||||
import Types.Key
|
||||
import Utility.DataUnits
|
||||
import Config
|
||||
|
|
10
Makefile
10
Makefile
|
@ -8,12 +8,11 @@ GHCMAKE=ghc $(GHCFLAGS) --make
|
|||
|
||||
bins=git-annex git-annex-shell git-union-merge
|
||||
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
|
||||
|
||||
all: $(bins) $(mans) docs
|
||||
|
||||
sources: SysConfig.hs StatFS.hs Touch.hs Remote/S3.hs
|
||||
|
||||
SysConfig.hs: configure.hs TestConfig.hs
|
||||
Build/SysConfig.hs: configure.hs Build/TestConfig.hs
|
||||
$(GHCMAKE) configure
|
||||
./configure
|
||||
|
||||
|
@ -30,7 +29,7 @@ Remote/S3.o: Remote/S3.hs
|
|||
echo "** building without S3 support"; \
|
||||
fi
|
||||
|
||||
$(bins): SysConfig.hs Touch.hs StatFS.hs Remote/S3.o
|
||||
$(bins): $(sources)
|
||||
$(GHCMAKE) $@
|
||||
|
||||
git-annex.1: doc/git-annex.mdwn
|
||||
|
@ -82,8 +81,7 @@ docs: $(mans)
|
|||
--exclude='news/.*'
|
||||
|
||||
clean:
|
||||
rm -rf build $(bins) $(mans) test configure *.tix .hpc \
|
||||
StatFS.hs Touch.hs SysConfig.hs Remote/S3.hs
|
||||
rm -rf build $(bins) $(mans) test configure *.tix .hpc $(sources)
|
||||
rm -rf doc/.ikiwiki html dist
|
||||
find . \( -name \*.o -or -name \*.hi \) -exec rm {} \;
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ import Locations
|
|||
import Config
|
||||
import Utility
|
||||
import Messages
|
||||
import Remote.Helper.Ssh
|
||||
import Utility.Ssh
|
||||
import Remote.Helper.Special
|
||||
import Remote.Helper.Encryptable
|
||||
import Crypto
|
||||
|
|
|
@ -25,8 +25,8 @@ import qualified Content
|
|||
import Messages
|
||||
import Utility.CopyFile
|
||||
import Utility.RsyncFile
|
||||
import Remote.Helper.Ssh
|
||||
import qualified Remote.Helper.Url as Url
|
||||
import Utility.Ssh
|
||||
import qualified Utility.Url as Url
|
||||
import Config
|
||||
import Init
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import Config
|
|||
import PresenceLog
|
||||
import LocationLog
|
||||
import Locations
|
||||
import qualified Remote.Helper.Url as Url
|
||||
import qualified Utility.Url as Url
|
||||
|
||||
type URLString = String
|
||||
|
||||
|
|
2
UUID.hs
2
UUID.hs
|
@ -33,7 +33,7 @@ import qualified Branch
|
|||
import Types
|
||||
import Types.UUID
|
||||
import qualified Annex
|
||||
import qualified SysConfig
|
||||
import qualified Build.SysConfig as SysConfig
|
||||
import Config
|
||||
|
||||
configkey :: String
|
||||
|
|
|
@ -10,7 +10,7 @@ module Utility.CopyFile (copyFile) where
|
|||
import System.Directory (doesFileExist, removeFile)
|
||||
|
||||
import Utility
|
||||
import qualified SysConfig
|
||||
import qualified Build.SysConfig as SysConfig
|
||||
|
||||
{- The cp command is used, because I hate reinventing the wheel,
|
||||
- and because this allows easy access to features like cp --reflink. -}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
- Licensed under the GNU GPL version 3 or higher.
|
||||
-}
|
||||
|
||||
module Remote.Helper.Ssh where
|
||||
module Utility.Ssh where
|
||||
|
||||
import Control.Monad.State (liftIO)
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
{-# LANGUAGE CPP, ForeignFunctionInterface, EmptyDataDecls #-}
|
||||
|
||||
|
||||
module StatFS ( FileSystemStats(..), getFileSystemStats ) where
|
||||
module Utility.StatFS ( FileSystemStats(..), getFileSystemStats ) where
|
||||
|
||||
import Foreign
|
||||
import Foreign.C.Types
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
{-# LANGUAGE ForeignFunctionInterface #-}
|
||||
|
||||
module Touch (
|
||||
module Utility.Touch (
|
||||
TimeSpec(..),
|
||||
touchBoth,
|
||||
touch
|
|
@ -1,11 +1,11 @@
|
|||
{- Url downloading for remotes.
|
||||
{- Url downloading.
|
||||
-
|
||||
- Copyright 2011 Joey Hess <joey@kitenet.net>
|
||||
-
|
||||
- Licensed under the GNU GPL version 3 or higher.
|
||||
-}
|
||||
|
||||
module Remote.Helper.Url (
|
||||
module Utility.Url (
|
||||
exists,
|
||||
download,
|
||||
get
|
|
@ -3,7 +3,7 @@
|
|||
import System.Directory
|
||||
import Data.List
|
||||
|
||||
import TestConfig
|
||||
import Build.TestConfig
|
||||
|
||||
tests :: [TestCase]
|
||||
tests =
|
||||
|
|
Loading…
Add table
Reference in a new issue