source: issm/trunk/externalpackages/vim/install.sh@ 6081

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
4NUMCPUS=$1;
5
6#version of vim
7version=`echo *.tar.bz2 | sed 's/\.tar\.bz2//g' | sed 's/vim-//g'` #ex 7.2
8version2=$(echo $version | sed -e "s/\.//g") #ex: 72
9
10#Some cleanup
11rm -rf install src
12rm -rf vim$version2
13
14#Create src and install directories
15mkdir install src
16
17#Untar
18bzip2 -d -k vim-$version.tar.bz2
19tar -xvf vim-$version.tar
20rm vim-$version.tar
21
22#Move vim into install directory
23mv vim$version2/* src
24rm -rf vim$version2
25
26#Configure doxygen
27cd src/src && ./configure --prefix "$ISSM_TIER/externalpackages/vim/install"
28
29#Compile vim
30if [ -z $NUMCPUS ];
31then
32 make
33else
34 make -j $NUMCPUS
35fi
36
37#Install vim
38make install
Note: See TracBrowser for help on using the repository browser.