-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure
executable file
·39 lines (31 loc) · 1.17 KB
/
configure
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
#!/usr/bin/perl
if($#ARGV == 0) {
$response = shift(@ARGV) ;
print("Configure soil test environment: $response \n");
}else {
print "Please select from following predefined environments: \n\n";
print " 1. hera \n";
print " 2. orion \n";
print " 3. gfortran compiler serial \n";
print " 0. exit only \n";
printf "\nEnter selection : " ;
$response = <STDIN> ;
chop($response);
}
if ($response == 1) {
# Hera settings
system "cp config/user_build_config.hera user_build_config";
print "\n load necessary modules:\n";
print "\n module load intel/2020.2 netcdf/4.7.0 \n\n\n";
}
elsif ($response == 2) {
# Orion settings
system "cp config/user_build_config.orion user_build_config";
print "\n load necessary modules:\n";
print "\n module load intel netcdf \n\n\n";
}
elsif ($response == 3) {
# Mike's Mac settings
system "cp config/user_build_config.gfortran.serial user_build_config";
}
else {print "no selection $response\n"; last}