Skip to content

Commit ac2bcb8

Browse files
committed
Simplify bootstrapping instructions
1 parent 7d2f216 commit ac2bcb8

File tree

1 file changed

+5
-30
lines changed

1 file changed

+5
-30
lines changed

README.md

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ __Note:__ On Linux and MacOS, you will need to enable executable permission befo
2424

2525
_e.g._ `$ chmod u+x fpm-v0.1.0-linux-x86_64`
2626

27-
For other platforms and architectures have a look at the [bootstrapping instructions](#bootstrapping-fpm).
27+
For other platforms and architectures have a look at the [bootstrapping instructions](#bootstrapping-instructions).
2828

2929
### Creating a new project
3030

@@ -50,53 +50,30 @@ with the following contents and initialized as a git repository.
5050
The command `fpm run` can optionally accept the name of the specific executable
5151
to run, as can `fpm test`; like `fpm run specific_executable`. Command line
5252
arguments can also be passed to the executable(s) or test(s) with the option
53-
`--args "some arguments"`.
53+
`-- some arguments`.
5454

5555
See additional instructions in the [Packaging guide](PACKAGING.md) or
5656
the [manifest reference](manifest-reference.md).
5757

58-
<details>
59-
<summary><b>Bootstrapping instructions</b></summary>
6058

6159
### Bootstrapping instructions
6260

6361
This guide explains the process of building *fpm* on a platform for the first time.
6462
If your platform and architecture are already supported, download the binary from the [release page](https://github.com/fortran-lang/fpm/releases) instead.
6563

66-
#### Install Haskell
67-
68-
To install **Haskell Stack**, follow these
69-
[instructions](https://docs.haskellstack.org/en/stable/install_and_upgrade/),
70-
users without superuser (admin) permissions should follow the
71-
[manual installation](https://docs.haskellstack.org/en/stable/install_and_upgrade/#manual-download_2)
72-
procedure.
73-
7464
#### Download this repository
7565

7666
```bash
7767
$ git clone https://github.com/fortran-lang/fpm
7868
$ cd fpm/
7969
```
8070

81-
#### Build and test fpm
82-
83-
Bootstrap *fpm* using:
84-
85-
```bash
86-
$ cd bootstrap/
87-
$ stack build
88-
```
71+
#### Build a bootstrap version of fpm
8972

90-
To test:
73+
You can use the install script to perform the build of the Haskell version of *fpm* with:
9174

9275
```bash
93-
$ stack test
94-
```
95-
96-
To install:
97-
98-
```bash
99-
$ stack install
76+
$ ./install.sh
10077
```
10178

10279
On Linux, the above command installs `fpm` to `${HOME}/.local/bin/`.
@@ -122,5 +99,3 @@ $ fpm run --runner cp -- ~/.local/bin
12299

123100
Or choose another location if you do not want to overwrite the bootstrapping version.
124101
From now on you can rebuild *fpm* with your Fortran *fpm* version.
125-
126-
</details>

0 commit comments

Comments
 (0)