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

Last change on this file since 4227 was 4227, checked in by Mathieu Morlighem, 15 years ago

fixed installation for unix, still not compiling on mac...

  • Property svn:executable set to *
File size: 679 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_DIR/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.