Last change
on this file since 13246 was 13246, checked in by seroussi, 12 years ago |
CHG: added set -eu in all installation files to stop if an error occurs
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | set -eu
|
---|
3 |
|
---|
4 | #0: cleanup
|
---|
5 | #1: install aspell
|
---|
6 | #2: install en dictionary
|
---|
7 | step=2
|
---|
8 |
|
---|
9 |
|
---|
10 | #Some cleanup
|
---|
11 | if [[ $step == "0" ]]; then
|
---|
12 | rm -rf src install dicts
|
---|
13 | rm -rf aspell-0.50.5
|
---|
14 | rm -rf aspell5-en-6.0.0
|
---|
15 | fi
|
---|
16 |
|
---|
17 | #install aspell
|
---|
18 | if [[ $step == "1" ]]; then
|
---|
19 |
|
---|
20 | mkdir src install dicts
|
---|
21 |
|
---|
22 | #Download from ISSM server
|
---|
23 | $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/aspell-0.50.5.tar.gz' 'aspell-0.50.5.tar.gz'
|
---|
24 |
|
---|
25 | #Untar
|
---|
26 | tar -zxvf aspell-0.50.5.tar.gz
|
---|
27 |
|
---|
28 | #Move aspell into src directory
|
---|
29 | mv aspell-0.50.5/* src
|
---|
30 | rm -rf aspell-0.50.5
|
---|
31 |
|
---|
32 | #Configure aspell
|
---|
33 | cd src
|
---|
34 | ./configure \
|
---|
35 | --prefix="$ISSM_DIR/externalpackages/aspell/install" \
|
---|
36 |
|
---|
37 | #Compile and install aspell
|
---|
38 | if [ -z $1 ]; then
|
---|
39 | make
|
---|
40 | else
|
---|
41 | make -j $1
|
---|
42 | fi
|
---|
43 | make install
|
---|
44 | fi
|
---|
45 |
|
---|
46 | #languages
|
---|
47 | if [[ $step == "2" ]]; then
|
---|
48 |
|
---|
49 | #Download from ISSM server
|
---|
50 | $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/aspell5-en-6.0.0.tar.gz' 'aspell5-en-6.0.0.tar.gz'
|
---|
51 |
|
---|
52 | #Untar
|
---|
53 | tar -zxvf aspell5-en-6.0.0.tar.gz
|
---|
54 |
|
---|
55 | #Move aspell into src directory
|
---|
56 | mv aspell5-en-6.0.0 dicts
|
---|
57 |
|
---|
58 | #install
|
---|
59 | cd dicts/aspell5-en-6.0.0
|
---|
60 | ./configure
|
---|
61 | make install
|
---|
62 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.