summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-06-07 19:48:16 +0400
committerSam T <pxqr.sta@gmail.com>2013-06-07 19:48:16 +0400
commit2940d8497947ebf18a70343b4a787a5e28c85754 (patch)
tree0ecd6588bfece6389e7b35a42c1244a4ce18ab67
parent13819af69d4a99f97eaf8ae439baeb6de37a1f5f (diff)
~ Move binary files in the res folder.
-rw-r--r--.gitattributes1
-rw-r--r--bittorrent.cabal6
-rw-r--r--res/dapper-dvd-amd64.iso.torrent (renamed from tests/dapper-dvd-amd64.iso.torrent)bin64198 -> 64198 bytes
-rw-r--r--tests/info-hash.hs2
4 files changed, 7 insertions, 2 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..a8a88417
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
res/* binary
diff --git a/bittorrent.cabal b/bittorrent.cabal
index e0f6df5a..223584fc 100644
--- a/bittorrent.cabal
+++ b/bittorrent.cabal
@@ -5,9 +5,10 @@ license-file: LICENSE
5author: Sam T. 5author: Sam T.
6maintainer: Sam T. <pxqr.sta@gmail.com> 6maintainer: Sam T. <pxqr.sta@gmail.com>
7copyright: (c) 2013, Sam T. 7copyright: (c) 2013, Sam T.
8category: Network, Data 8category: Network
9build-type: Simple 9build-type: Simple
10cabal-version: >= 1.8 10cabal-version: >= 1.8
11tested-with: GHC==7.4.1
11homepage: https://github.com/pxqr/bittorrent 12homepage: https://github.com/pxqr/bittorrent
12bug-reports: https://github.com/pxqr/bittorrent/issues 13bug-reports: https://github.com/pxqr/bittorrent/issues
13synopsis: Bittorrent protocol implementation. 14synopsis: Bittorrent protocol implementation.
@@ -19,6 +20,9 @@ description:
19 <https://github.com/pxqr/bittorrent/blob/master/README.md> 20 <https://github.com/pxqr/bittorrent/blob/master/README.md>
20 21
21 22
23extra-source-files: res/dapper-dvd-amd64.iso.torrent
24-- not a source file, but we need to keep it in tarball for tests
25
22 26
23source-repository head 27source-repository head
24 type: git 28 type: git
diff --git a/tests/dapper-dvd-amd64.iso.torrent b/res/dapper-dvd-amd64.iso.torrent
index 5713344b..5713344b 100644
--- a/tests/dapper-dvd-amd64.iso.torrent
+++ b/res/dapper-dvd-amd64.iso.torrent
Binary files differ
diff --git a/tests/info-hash.hs b/tests/info-hash.hs
index ced90451..dbbcbf53 100644
--- a/tests/info-hash.hs
+++ b/tests/info-hash.hs
@@ -12,7 +12,7 @@ checkInfo :: String
12checkInfo = "0221caf96aa3cb94f0f58d458e78b0fc344ad8bf" 12checkInfo = "0221caf96aa3cb94f0f58d458e78b0fc344ad8bf"
13 13
14torrentFileName :: String 14torrentFileName :: String
15torrentFileName = "tests/dapper-dvd-amd64.iso.torrent" 15torrentFileName = "res/dapper-dvd-amd64.iso.torrent"
16 16
17main :: IO () 17main :: IO ()
18main = do 18main = do