source: issm/trunk-jpl/externalpackages/inishell/install.sh@ 15900

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

CHG: inishell package to be used in conjunction with snowpack

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/bash
2#inishell install package: this package is not distributed by ISSM. Please request access to the code by
3#contacting Mathias Bavay () or logging onto http://models.slf.ch/ and registering. Once you have a tarball
4#of the code, please use this script to install.
5
6#we assume you have a inishell-src-*.tgz tarball
7set -eu
8
9#Do some inquiry about the names of the tar balls:
10source_tar=`ls inishell-src-*.tgz`
11source_version=`echo $source_tar | sed 's/inishell-src-//g' | sed 's/.tgz//g'`
12
13if [[ $source_tar == "" ]]; then
14 echo "Could not identify a tar ball for the source code, name should be inishell-src-*.tgz"
15 exit 1
16fi
17if [[ $source_version == "" ]]; then
18 echo "Could not identify a tar ball version for the source code"
19 exit 1
20fi
21
22
23#Some cleanup
24rm -rf src install inishell-$source_version
25mkdir install
26
27#First deal with source code
28tar -zxvf $source_tar
29mv inishell-$source_version src
30rm -rf inishell-$source_version
31
32#Build inishell
33cd src && ant snowpack
34
35#Put the .jar in the install directory
36cp dist/inishell.jar ../install
37
38#Install script to launch inishell jar file directly
39cd ..
40cp scripts/inishell install
Note: See TracBrowser for help on using the repository browser.