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
635a8fc4
Commit
635a8fc4
authored
Aug 29, 2015
by
Sumit Sahrawat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modularize build script
parent
0bdf5ee0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
19 deletions
+37
-19
build.sh
build.sh
+37
-19
No files found.
build.sh
View file @
635a8fc4
...
...
@@ -32,9 +32,6 @@ fi
# What to install.
INSTALLS
=
""
# Remove my kernelspec
rm
-rf
~/.ipython/kernels/haskell
# Compile dependencies.
if
[
$#
-gt
0
]
;
then
if
[
$1
=
"all"
]
||
[
$1
=
"ihaskell"
]
;
then
...
...
@@ -58,25 +55,46 @@ if [ $# -gt 0 ]; then
fi
fi
# Clean all required directories, just in case.
TOP
=
`
pwd
`
for
pkg
in
$INSTALLS
do
cleanup
()
{
# Remove old kernelspec
rm
-rf
~/.ipython/kernels/haskell
# Clean all required directories, just in case.
TOP
=
`
pwd
`
for
pkg
in
$INSTALLS
do
cd
./
$pkg
cabal clean
cd
$TOP
done
done
}
# Stick a "./" before everything.
INSTALL_DIRS
=
`
echo
$INSTALLS
|
tr
' '
'\n'
|
sed
's#^#./#'
|
tr
' '
'\n'
`
install_selected
()
{
# Stick a "./" before everything.
INSTALL_DIRS
=
`
echo
$INSTALLS
|
tr
' '
'\n'
|
sed
's#^#./#'
|
tr
' '
'\n'
`
echo
CMD: cabal
install
--constraint
"arithmoi -llvm"
-j
$INSTALL_DIRS
--force-reinstalls
--max-backjumps
=
-1
--reorder-goals
cabal
install
--constraint
"arithmoi -llvm"
-j
$INSTALL_DIRS
--force-reinstalls
--max-backjumps
=
-1
--reorder-goals
echo
CMD: cabal
install
--constraint
"arithmoi -llvm"
-j
$INSTALL_DIRS
--force-reinstalls
--max-backjumps
=
-1
--reorder-goals
cabal
install
--constraint
"arithmoi -llvm"
-j
$INSTALL_DIRS
--force-reinstalls
--max-backjumps
=
-1
--reorder-goals
}
if
[
$2
=
"no-widgets"
]
;
then
echo
'Not installing ihaskell-widgets'
elif
[
$1
=
"display"
]
||
[
$1
=
"all"
]
;
then
install_widgets
()
{
echo
CMD: cabal
install
ihaskell-display/ihaskell-widgets
cabal
install
ihaskell-display/ihaskell-widgets
}
# Check if arguments are correct, and proceed as required
if
[
-z
$2
]
;
then
cleanup
install_selected
if
[
$1
=
"display"
]
||
[
$1
=
"all"
]
;
then
install_widgets
fi
elif
[
$2
=
"no-widgets"
]
;
then
cleanup
install_selected
else
print_help
exit
1
fi
if
hash
ihaskell 2>/dev/null
;
then
...
...
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