-
Notifications
You must be signed in to change notification settings - Fork 3
/
installcalpuff.sh
executable file
·80 lines (78 loc) · 2.32 KB
/
installcalpuff.sh
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/bash -
#title :installcalpuff.sh
#description :This scripts installs CALPUFF system version 7 in the appropriate location for the CALPUFF MODEL
#author :CEMAC - Helen
#date :20190501
#version :1.0
#usage :./installcalpuff.sh
#notes :
#bash_version :4.2.46(2)-release
#============================================================================
echo 'Running installcalpuff.sh'
cd CALPUFF_SRC
echo 'Downloading and unzipping CALMET'
wget www.src.com/calpuff/download/Mod7_Files/CALMET_v6.5.0_L150223.zip
mv CALMET_v6.5.0_L150223.zip CALMET.zip
unzip CALMET.zip
rm -f CALMET.zip CALMET_v6.5.0_L150223.zip
if [ -e CALMET ];
then
rm -rf CALMET
fi
mv CALMET_v6.5.0_L150223/ CALMET/
cd CALMET
for i in *; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
cd ..
echo 'Downloading and unzipping CALPUFF'
wget http://www.src.com/calpuff/download/Mod7_Files/CALPUFF_v7.2.1_L150618.zip
unzip CALPUFF_v7.2.1_L150618.zip
if [ -e CALPUFF ];
then
rm -rf CALPUFF
fi
mv CALPUFF_v7.2.1_L150618/ CALPUFF/
rm -f CALPUFF_v7.2.1_L150618.zip
cd CALPUFF
for i in *; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
cd ..
echo 'Downloading and unzipping CTGPROC'
wget http://www.src.com/calpuff/download/Mod7_Files/CTGPROC_v7.0.0_L150211.zip
unzip CTGPROC_v7.0.0_L150211.zip
if [ -e CTGPROC ];
then
rm -rf CTGPROC
fi
mv CTGPROC_v7.0.0_L150211/ CTGPROC/
rm -f CTGPROC_v7.0.0_L150211.zip
cd CTGPROC
for i in *; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
cd ..
echo 'Downloading and unzipping MAKEGEO'
wget http://www.src.com/calpuff/download/Mod7_Files/MAKEGEO_V3.2_L110401.zip
unzip MAKEGEO_V3.2_L110401.zip
if [ -e MAKEGEO ];
then
rm -rf MAKEGEO
fi
mv MAKEGEO_V3.2_L110401/ MAKEGEO/
rm -f MAKEGEO_V3.2_L110401.zip
cd MAKEGEO
for i in *; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
cd ..
echo 'Downloading and unzipping TERREL'
wget http://www.src.com/calpuff/download/Mod7_Files/TERREL_v7.0.0_L141010.zip
unzip TERREL_v7.0.0_L141010.zip
if [ -e TERREL ];
then
rm -rf TERREL
fi
mv TERREL_v7.0.0_L141010/ TERREL/
rm -f TERREL_v7.0.0_L141010.zip
cd TERREL
for i in *; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
cd ..
cd ..
echo 'complete - ready to compile executables'
echo 'please Agree to CALPUFF License Agreements'
echo 'http://www.src.com/calpuff/calpuff_eula.htm'
./makecodemods.sh