source: issm/trunk/externalpackages/mtoc/install.sh@ 1

Last change on this file since 1 was 1, checked in by Eric.Larour, 17 years ago

Initial import

File size: 439 bytes
Line 
1#!/bin/bash
2
3#Get number of cpus on current platform
4NUMCPUS=`grep -c processor /proc/cpuinfo`;
5
6#version of mtoc
7name=`echo *.tgz | sed 's/\.tgz//g'`
8echo $name
9
10#Some cleanup
11rm -rf src install $name
12
13#Create src and install directories
14mkdir src install
15
16#Untar
17tar -zxvf $name.tgz
18
19#Move mtoc to src directory
20mv $name/* src/
21rm -rf $name
22
23#Compile mtoc
24cd src
25rm -rf mtoc mtoc.exe
26
27flex mtoc.l
28gcc -o ../install/mtoc lex.yy.c -lfl
Note: See TracBrowser for help on using the repository browser.