utils/index: make it possible to update a specific project
Allow calling like:
./utils/index musl
That will do the same thing as before (fetch+index).
It works only if a previous call was made to add remotes.
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
This commit is contained in:
parent
a76c95546d
commit
359c76f720
1 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if test $# -lt 3 -a \( $# -ne 2 -o "$2" != "--all" \); then
|
if test $# -lt 2; then
|
||||||
echo "Usage: $0 <elixir_data_path> <project_name> <repo_urls>..."
|
echo "Usage: $0 <elixir_data_path> <project_name> [<repo_urls>...]"
|
||||||
echo "Usage: $0 <elixir_data_path> --all"
|
echo "Usage: $0 <elixir_data_path> --all"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
@ -89,7 +89,7 @@ index() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Index a single project
|
# Index a single project
|
||||||
if test $# -ge 3; then
|
if test "$2" != "--all"; then
|
||||||
index "$@"
|
index "$@"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue