From 415718b65d16e877265a19b7822e991290306090 Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Wed, 8 Sep 2021 12:56:03 +0200 Subject: Update installer script to update subprojects first (#557) --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'install.sh') 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 -- cgit v1.2.3