@@ -24,7 +24,7 @@ __Note:__ On Linux and MacOS, you will need to enable executable permission befo
24
24
25
25
_ e.g._ ` $ chmod u+x fpm-v0.1.0-linux-x86_64 `
26
26
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 ) .
28
28
29
29
### Creating a new project
30
30
@@ -50,53 +50,30 @@ with the following contents and initialized as a git repository.
50
50
The command ` fpm run ` can optionally accept the name of the specific executable
51
51
to run, as can ` fpm test ` ; like ` fpm run specific_executable ` . Command line
52
52
arguments can also be passed to the executable(s) or test(s) with the option
53
- ` --args " some arguments" ` .
53
+ ` -- some arguments ` .
54
54
55
55
See additional instructions in the [ Packaging guide] ( PACKAGING.md ) or
56
56
the [ manifest reference] ( manifest-reference.md ) .
57
57
58
- <details >
59
- <summary ><b >Bootstrapping instructions</b ></summary >
60
58
61
59
### Bootstrapping instructions
62
60
63
61
This guide explains the process of building * fpm* on a platform for the first time.
64
62
If your platform and architecture are already supported, download the binary from the [ release page] ( https://github.com/fortran-lang/fpm/releases ) instead.
65
63
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
-
74
64
#### Download this repository
75
65
76
66
``` bash
77
67
$ git clone https://github.com/fortran-lang/fpm
78
68
$ cd fpm/
79
69
```
80
70
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
89
72
90
- To test :
73
+ You can use the install script to perform the build of the Haskell version of * fpm * with :
91
74
92
75
``` bash
93
- $ stack test
94
- ```
95
-
96
- To install:
97
-
98
- ``` bash
99
- $ stack install
76
+ $ ./install.sh
100
77
```
101
78
102
79
On Linux, the above command installs ` fpm ` to ` ${HOME}/.local/bin/ ` .
@@ -122,5 +99,3 @@ $ fpm run --runner cp -- ~/.local/bin
122
99
123
100
Or choose another location if you do not want to overwrite the bootstrapping version.
124
101
From now on you can rebuild * fpm* with your Fortran * fpm* version.
125
-
126
- </details >
0 commit comments