Skip to content

Commit

Permalink
everest: allow selecting many projects
Browse files Browse the repository at this point in the history
This allows to run a command such as:

	./everest FStar karamel everparse make -j8
  • Loading branch information
mtzguido committed Dec 9, 2023
1 parent 24ea257 commit 1d125db
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions everest
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ fi

# May be overridden to include a single project
ALL_PROJECTS="${!repositories[@]}"
SELECTIVE=false
# ^ Whether we are only running over a subset of the projects

# ------------------------------------------------------------------------------
# A series of helpers
Expand Down Expand Up @@ -1202,7 +1204,7 @@ print_usage ()
cat <<HELP
OVERVIEW: $0, a high-level management script for Project Everest
USAGE: $0 [OPTIONS] [PROJECT] COMMANDS
USAGE: $0 [OPTIONS] [PROJECTS] COMMANDS
OPTION:
--yes Non-interactive mode (answer y to all questions, verbose)
Expand All @@ -1224,8 +1226,11 @@ OPTION:
PROJECT:
The commands
pull reset advance merge make
can be restricted to operate on one of the following:
can be restricted to operate on one or many of the following:
FStar karamel mitls-fstar hacl-star merkle-tree MLCrypto everparse everquic-crypto
to restrict the projects to a subset, pass them in separate arguments
before any command, e.g.:
./everest FStar karamel everparse make -k -j16
COMMAND:
check ensure that all the required programs are found in path, install
Expand Down Expand Up @@ -1393,7 +1398,12 @@ while true; do
;;

FStar|mitls-fstar|karamel|hacl-star|MLCrypto|everparse|merkle-tree|everquic-crypto|steel)
ALL_PROJECTS=$1
if $SELECTIVE; then
ALL_PROJECTS="$ALL_PROJECTS,$1"
else
ALL_PROJECTS="$1"
SELECTIVE=true
fi
;;

reset)
Expand Down

0 comments on commit 1d125db

Please sign in to comment.