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
eac5b864
Commit
eac5b864
authored
Mar 07, 2015
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #412 by adding modes and cleaning up build.sh
parent
eef1bd2a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
8 deletions
+27
-8
build.sh
build.sh
+27
-8
No files found.
build.sh
View file @
eac5b864
#!/bin/sh
#!/bin/sh
set
-e
set
-e
set
-x
function
print_help
{
echo
"Run build.sh from inside the IHaskell directory to install packages in this repository:"
echo
" ./build.sh ihaskell # Install IHaskell and its dependencies"
echo
" ./build.sh quick # Install IHaskell, but not its dependencies"
echo
" ./build.sh all # Install IHaskell, dependencies, and all display packages"
echo
" ./build.sh display # Install IHaskell and display libraries"
echo
echo
"If this is your first time installing IHaskell, run './build.sh ihaskell'."
}
# Verify that we're in the IHaskell directory.
# Verify that we're in the IHaskell directory.
if
[
!
-e
ihaskell.cabal
]
;
then
if
[
!
-e
ihaskell.cabal
]
;
then
echo
"Run build.sh from inside the IHaskell directory:"
print_help
;
echo
" ./build.sh all # Install IHaskell and deps (use if first install)"
exit
1
echo
" ./build.sh # Install only IHaskell, no deps"
fi
echo
" ./build.sh display # Install IHaskell and display libraries"
if
[
$#
-lt
1
]
;
then
print_help
;
exit
1
exit
1
fi
fi
if
[
!
$1
=
"all"
]
||
[
!
$1
=
"ihaskell"
]
||
[
!
$1
=
"display"
]
||
[
!
$1
=
"quick"
]
;
then
print_help
;
exit
1
;
fi
# What to install.
# What to install.
INSTALLS
=
""
INSTALLS
=
""
...
@@ -18,17 +36,17 @@ rm -rf ~/.ipython/kernels/haskell
...
@@ -18,17 +36,17 @@ rm -rf ~/.ipython/kernels/haskell
# Compile dependencies.
# Compile dependencies.
if
[
$#
-gt
0
]
;
then
if
[
$#
-gt
0
]
;
then
if
[
$1
=
"all"
]
;
then
if
[
$1
=
"all"
]
||
[
$1
=
"ihaskell"
]
;
then
INSTALLS
=
"
$INSTALLS
ghc-parser ipython-kernel"
INSTALLS
=
"
$INSTALLS
ghc-parser ipython-kernel"
fi
fi
fi
fi
#
M
ake ihaskell itself
#
Always m
ake ihaskell itself
INSTALLS
=
"
$INSTALLS
."
INSTALLS
=
"
$INSTALLS
."
# Install ihaskell-display packages.
# Install ihaskell-display packages.
if
[
$#
-gt
0
]
;
then
if
[
$#
-gt
0
]
;
then
if
[
$1
=
"display"
]
;
then
if
[
$1
=
"display"
]
||
[
$1
=
"all"
]
;
then
# Install all the display libraries
# Install all the display libraries
# However, install ihaskell-diagrams separately...
# However, install ihaskell-diagrams separately...
cd
ihaskell-display
cd
ihaskell-display
...
@@ -60,7 +78,8 @@ fi
...
@@ -60,7 +78,8 @@ fi
# Finish installing ihaskell-diagrams.
# Finish installing ihaskell-diagrams.
if
[
$#
-gt
0
]
;
then
if
[
$#
-gt
0
]
;
then
if
[
$1
=
"display"
]
;
then
if
[
$1
=
"display"
]
||
[
$1
=
"all"
]
;
then
echo
'Installing IHaskell diagrams support.'
cabal
install
-j
ihaskell-display/ihaskell-diagrams
--force-reinstalls
--constraint
"arithmoi==0.4.*"
cabal
install
-j
ihaskell-display/ihaskell-diagrams
--force-reinstalls
--constraint
"arithmoi==0.4.*"
fi
fi
fi
fi
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