aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorSebastian Ehlert <28669218+awvwgk@users.noreply.github.com>2021-09-08 12:56:03 +0200
committerGitHub <noreply@github.com>2021-09-08 12:56:03 +0200
commit415718b65d16e877265a19b7822e991290306090 (patch)
treeed500568f904b28289660d1aa21787c49d4dd97e /install.sh
parent5c908fc0157b9e3637a83dc532ab1bea4fd8b184 (diff)
downloadfpm-415718b65d16e877265a19b7822e991290306090.tar.gz
fpm-415718b65d16e877265a19b7822e991290306090.zip
Update installer script to update subprojects first (#557)
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 59a422a..81a442a 100755
--- a/install.sh
+++ b/install.sh
@@ -42,7 +42,7 @@ done
set -u # error on use of undefined variable
-SOURCE_URL="https://github.com/fortran-lang/fpm/releases/download/v0.3.0/fpm-0.3.0.F90"
+SOURCE_URL="https://github.com/fortran-lang/fpm/releases/download/v0.4.0/fpm-0.4.0.F90"
BOOTSTRAP_DIR="build/bootstrap"
if [ -z ${FC+x} ]; then
FC="gfortran"
@@ -66,5 +66,6 @@ $FETCH $SOURCE_URL > $BOOTSTRAP_DIR/fpm.F90
$FC $FFLAGS -J $BOOTSTRAP_DIR $BOOTSTRAP_DIR/fpm.F90 -o $BOOTSTRAP_DIR/fpm
+$BOOTSTRAP_DIR/fpm update
$BOOTSTRAP_DIR/fpm install --compiler "$FC" --flag "$FFLAGS" --prefix "$PREFIX"
rm -r $BOOTSTRAP_DIR