Last change
on this file since 6081 was 6081, checked in by Eric.Larour, 14 years ago |
New ISSM_TIER points to current tier being used, could be a branch, or the trunk
|
-
Property svn:executable
set to
*
|
File size:
680 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | #Get number of cpus on current platform
|
---|
4 | NUMCPUS=$1;
|
---|
5 |
|
---|
6 | #version of vim
|
---|
7 | version=`echo *.tar.bz2 | sed 's/\.tar\.bz2//g' | sed 's/vim-//g'` #ex 7.2
|
---|
8 | version2=$(echo $version | sed -e "s/\.//g") #ex: 72
|
---|
9 |
|
---|
10 | #Some cleanup
|
---|
11 | rm -rf install src
|
---|
12 | rm -rf vim$version2
|
---|
13 |
|
---|
14 | #Create src and install directories
|
---|
15 | mkdir install src
|
---|
16 |
|
---|
17 | #Untar
|
---|
18 | bzip2 -d -k vim-$version.tar.bz2
|
---|
19 | tar -xvf vim-$version.tar
|
---|
20 | rm vim-$version.tar
|
---|
21 |
|
---|
22 | #Move vim into install directory
|
---|
23 | mv vim$version2/* src
|
---|
24 | rm -rf vim$version2
|
---|
25 |
|
---|
26 | #Configure doxygen
|
---|
27 | cd src/src && ./configure --prefix "$ISSM_TIER/externalpackages/vim/install"
|
---|
28 |
|
---|
29 | #Compile vim
|
---|
30 | if [ -z $NUMCPUS ];
|
---|
31 | then
|
---|
32 | make
|
---|
33 | else
|
---|
34 | make -j $NUMCPUS
|
---|
35 | fi
|
---|
36 |
|
---|
37 | #Install vim
|
---|
38 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.