Skip to content

Commit

Permalink
add gfortran-update-sdk script
Browse files Browse the repository at this point in the history
  • Loading branch information
s-u committed Apr 26, 2022
1 parent fcfd216 commit 005a662
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions other/gfortran-update-sdk
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

if [ -z "$1" ]; then
SDK=`xcrun --show-sdk-path`
else
SDK="$1"
fi

echo "Updating gfortran SDK path to $SDK"

ln -sfn "$SDK" /opt/R/arm64/gfortran/SDK || ( echo "ERROR: cannot update the symlink! Try sudo ..." >&2; exit 1)

0 comments on commit 005a662

Please sign in to comment.