Files
runner-images-PK/images/linux/scripts/installers/gfortran.sh
T

27 lines
659 B
Bash
Raw Normal View History

2020-10-07 13:49:40 +05:00
#!/bin/bash -e
2020-02-04 17:14:16 +03:00
################################################################################
## File: gfortran.sh
## Desc: Installs GNU Fortran
################################################################################
source $HELPER_SCRIPTS/install.sh
2020-11-25 11:13:17 +04:00
source $HELPER_SCRIPTS/os.sh
2020-02-04 17:14:16 +03:00
function InstallFortran {
version=$1
echo "Installing $version..."
apt-get install $version -y
}
# Install GNU Fortran compiler
2020-02-05 14:08:16 +03:00
add-apt-repository ppa:ubuntu-toolchain-r/test -y
2020-02-04 17:14:16 +03:00
apt-get update -y
versions=$(get_toolset_value '.gfortran.versions[]')
2020-11-25 11:13:17 +04:00
2020-02-04 17:14:16 +03:00
for version in ${versions[*]}
do
InstallFortran $version
done
invoke_tests "Tools" "gfortran"