diff options
author | LKedward <laurence.kedward@bristol.ac.uk> | 2021-02-13 12:53:38 +0000 |
---|---|---|
committer | LKedward <laurence.kedward@bristol.ac.uk> | 2021-02-13 12:55:34 +0000 |
commit | 8c65d9e3a8347f6f076e92236a2c3d9fd014edea (patch) | |
tree | 62a3397d60a58446c59992bf059a780c49b9fad3 /README.md | |
parent | 9fe39db656155b5106a49a54c8d2cc2147d060f1 (diff) | |
download | fpm-8c65d9e3a8347f6f076e92236a2c3d9fd014edea.tar.gz fpm-8c65d9e3a8347f6f076e92236a2c3d9fd014edea.zip |
Update: install script for Fortran fpm.
- Include bootstrap of Fortran fpm in install.sh
- Add ability to update repository from latest tag
- Add ability to specify install path
- Update README to simplify bootstrap procedure
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 24 |
1 files changed, 9 insertions, 15 deletions
@@ -72,32 +72,26 @@ $ cd fpm/ #### Build a bootstrap version of fpm -You can use the install script to perform the build of the Haskell version of *fpm* with: +You can use the install script to bootstrap and install *fpm*: ```bash $ ./install.sh ``` -On Linux, the above command installs `fpm` to `${HOME}/.local/bin/`. - -Now you can build the Fortran *fpm* version with +By default, the above command installs `fpm` to `${HOME}/.local/bin/`. +To specify an alternative destination use the `--prefix=` flag, for example: ```bash -$ cd fpm/ -$ fpm build +$ ./install.sh --prefix=/usr/local ``` -Test that everything is working as expected +which will install *fpm* to `/usr/local/bin`. -```bash -$ fpm test -``` - -Finally, install the Fortran *fpm* version with +To test that everything is working as expected you can now build *fpm* +with itself and run the tests with: ```bash -$ fpm run --runner mv -- ~/.local/bin +$ cd fpm +$ fpm test ``` -Or choose another location if you do not want to overwrite the bootstrapping version. -From now on you can rebuild *fpm* with your Fortran *fpm* version. |