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