Debian Codegraph @

etc/actions/macos/link_fortran.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 set -e
4 set -x
5
6 ARCH=$1
7
8 LOCAL_PATH=/usr/localscip-shell filesystem . . `/usr/local`.
9 if [scip-shell system . . `[`. "$ARCH" = "arm" ]; then
10 LOCAL_PATH=/opt/homebrewscip-shell filesystem . . `/opt/homebrew`.
11 fi
12
13 MAX_GFORTRAN_VERSIONS=$(printfscip-shell system . . printf. '%s\n' $LOCAL_PATH/bin/gfortran-[0-9]* 2>/dev/nullscip-shell filesystem . . `/dev/null`. \
14 | sort -V \
15 | tail -n1)
16
17 sudoscip-shell system . . sudo. ln -fs "$MAX_GFORTRAN_VERSIONS" "$LOCAL_PATH/bin/gfortran"