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
|
---|
7 | set -eu
|
---|
8 |
|
---|
9 | #Do some inquiry about the names of the tar balls:
|
---|
10 | source_tar=`ls inishell-src-*.tgz`
|
---|
11 | source_version=`echo $source_tar | sed 's/inishell-src-//g' | sed 's/.tgz//g'`
|
---|
12 |
|
---|
13 | if [[ $source_tar == "" ]]; then
|
---|
14 | echo "Could not identify a tar ball for the source code, name should be inishell-src-*.tgz"
|
---|
15 | exit 1
|
---|
16 | fi
|
---|
17 | if [[ $source_version == "" ]]; then
|
---|
18 | echo "Could not identify a tar ball version for the source code"
|
---|
19 | exit 1
|
---|
20 | fi
|
---|
21 |
|
---|
22 |
|
---|
23 | #Some cleanup
|
---|
24 | rm -rf src install inishell-$source_version
|
---|
25 | mkdir install
|
---|
26 |
|
---|
27 | #First deal with source code
|
---|
28 | tar -zxvf $source_tar
|
---|
29 | mv inishell-$source_version src
|
---|
30 | rm -rf inishell-$source_version
|
---|
31 |
|
---|
32 | #Build inishell
|
---|
33 | cd src && ant snowpack
|
---|
34 |
|
---|
35 | #Put the .jar in the install directory
|
---|
36 | cp dist/inishell.jar ../install
|
---|
37 |
|
---|
38 | #Install script to launch inishell jar file directly
|
---|
39 | cd ..
|
---|
40 | cp scripts/inishell install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.