diff options
author | Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> | 2021-09-08 12:56:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-08 12:56:03 +0200 |
commit | 415718b65d16e877265a19b7822e991290306090 (patch) | |
tree | ed500568f904b28289660d1aa21787c49d4dd97e /install.sh | |
parent | 5c908fc0157b9e3637a83dc532ab1bea4fd8b184 (diff) | |
download | fpm-415718b65d16e877265a19b7822e991290306090.tar.gz fpm-415718b65d16e877265a19b7822e991290306090.zip |
Update installer script to update subprojects first (#557)
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |