Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
49b2e410
Commit
49b2e410
authored
Jan 26, 2014
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setup.hs now builds profile.tar, closes #164
parent
ec9aa8e9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
Setup.hs
Setup.hs
+22
-1
ihaskell.cabal
ihaskell.cabal
+1
-1
No files found.
Setup.hs
View file @
49b2e410
import
Distribution.Simple
main
=
defaultMain
import
Control.Applicative
((
<$>
))
import
Data.List
(
isInfixOf
)
import
Codec.Archive.Tar
(
create
)
import
System.Directory
(
getDirectoryContents
)
main
=
defaultMainWithHooks
simpleUserHooks
{
preBuild
=
makeProfileTar
}
makeProfileTar
args
flags
=
do
putStrLn
"Building profile.tar."
let
profileDir
=
"profile"
tarFile
=
profileDir
++
"/profile.tar"
files
<-
filter
realFile
<$>
filter
notProfileTar
<$>
getDirectoryContents
profileDir
print
files
create
tarFile
profileDir
files
preBuild
simpleUserHooks
args
flags
where
notProfileTar
str
=
not
$
"profile.tar"
`
isInfixOf
`
str
realFile
str
=
str
/=
"."
&&
str
/=
".."
ihaskell.cabal
View file @
49b2e410
...
...
@@ -37,7 +37,7 @@ maintainer: andrew.gibiansky@gmail.com
category: Development
build-type:
Simple
build-type:
Custom
-- Constraint on the version of Cabal needed to build this package.
cabal-version: >=1.16
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment