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