Skip to content

Commit 415718b

Browse files
authored
Update installer script to update subprojects first (#557)
1 parent 5c908fc commit 415718b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ done
4242

4343
set -u # error on use of undefined variable
4444

45-
SOURCE_URL="https://github.com/fortran-lang/fpm/releases/download/v0.3.0/fpm-0.3.0.F90"
45+
SOURCE_URL="https://github.com/fortran-lang/fpm/releases/download/v0.4.0/fpm-0.4.0.F90"
4646
BOOTSTRAP_DIR="build/bootstrap"
4747
if [ -z ${FC+x} ]; then
4848
FC="gfortran"
@@ -66,5 +66,6 @@ $FETCH $SOURCE_URL > $BOOTSTRAP_DIR/fpm.F90
6666

6767
$FC $FFLAGS -J $BOOTSTRAP_DIR $BOOTSTRAP_DIR/fpm.F90 -o $BOOTSTRAP_DIR/fpm
6868

69+
$BOOTSTRAP_DIR/fpm update
6970
$BOOTSTRAP_DIR/fpm install --compiler "$FC" --flag "$FFLAGS" --prefix "$PREFIX"
7071
rm -r $BOOTSTRAP_DIR

0 commit comments

Comments
 (0)