./build: enable to mask some tasks.

If we list all the packages that have a release task we have:
    $ ./build release list
    Available packages for task 'release':

    roms
    src
    u-boot-libre
    website

If for some reasons we don't want to have u-boot-libre shown (because
for instance it doesn't build and you want to avoid building it as
part of the './build release all' command, then you can mask it by
removing the executable permission:
    $ chmod -x resources/packages/u-boot-libre/release

And it then doesn't show up anymore:
    $ ./build release list
    Available packages for task 'release':

    roms
    src
    website

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Acked-by: Adrien 'neox' Bourmault <neox@gnu.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2023-12-08 01:52:45 +01:00 committed by Adrien 'neox' Bourmault
parent 1943c8ce72
commit 4c7895d38b
Signed by: neox
GPG Key ID: 2974E1D5F25DFCC8
1 changed files with 1 additions and 0 deletions

1
build
View File

@ -56,6 +56,7 @@ list_tasks_paths() {
find resources/packages \ find resources/packages \
-mindepth 2 -maxdepth 2 \ -mindepth 2 -maxdepth 2 \
-type f \ -type f \
-executable \
-name "${task}" \ -name "${task}" \
-printf "%P\n" -printf "%P\n"
} }