-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall.sh
More file actions
55 lines (46 loc) · 1.06 KB
/
install.sh
File metadata and controls
55 lines (46 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
# Change for prefered install location
idir=/usr/local
# Location of GISS repo
wdir=/usr/local
gts=gts
gerris=gerris
gfsview=gfsview
build_gts=true
build_gerris=true
build_gfsview=true
if $build_gts ; then
if ( cd $wdir/$gts && sh ./configure --prefix=$idir/local && make -k && make -k install ) \
> $wdir/build 2>&1 ; then :
else
echo
echo ============ $wdir/$gts: build failed ============
echo
cat $wdir/build
exit 1
fi
build_gerris=true
fi
if $build_gerris ; then
if ( cd $wdir/$gerris && sh ./configure --prefix=$idir/local && make -k && make -k install ) \
> $wdir/build 2>&1 ; then :
else
echo
echo ============ $wdir/$gerris: build failed ============
echo
cat $wdir/build
exit 1
fi
build_gfsview=true
fi
if $build_gfsview ; then
if ( cd $wdir/$gfsview && sh ./configure --prefix=$idir/local && make -k && make -k install ) \
> $wdir/build 2>&1 ; then :
else
echo
echo ============ $wdir/$gfsview: build failed ============
echo
cat $wdir/build
exit 1
fi
fi