This commit is contained in:
Josh Holtrop 2022-02-27 16:10:34 -05:00
parent 3cfffed7ec
commit 6f9b21adb9

View File

@ -1336,6 +1336,7 @@ The command `./rscons --variants kde,release` would build just "prog-kde-release
* `clean` (see ${#Clean Task}) * `clean` (see ${#Clean Task})
* `configure` (see ${#Configure Task}) * `configure` (see ${#Configure Task})
* `default` (see ${#Default Task}) * `default` (see ${#Default Task})
* `download` (see ${#Downloading Files: The download Method})
* `distclean` (see ${#Distclean Task}) * `distclean` (see ${#Distclean Task})
* `glob` (see ${#Finding Files: The glob Method}) * `glob` (see ${#Finding Files: The glob Method})
* `install` (see ${#Install Task}) * `install` (see ${#Install Task})
@ -1401,6 +1402,18 @@ end
This example would build the `mytests` executable from all `.cc` source files This example would build the `mytests` executable from all `.cc` source files
found recursively under the `src` or `test` directory. found recursively under the `src` or `test` directory.
###> Downloading Files: The download Method
The [`download`](../yard/Rscons/Script/GlobalDsl.html#download-instance_method)
method can be used to download a file from a given URL.
Example use:
```ruby
default do
end
```
###> PATH Management ###> PATH Management
`rscons` provides methods for management of the `PATH` environment variable. `rscons` provides methods for management of the `PATH` environment variable.