mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-09 18:11:48 +08:00
21 lines
493 B
Bash
Executable File
21 lines
493 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
set -eEuo pipefail
|
|
IFS=$'\n\t'
|
|
cd "$(dirname "$0")"/..
|
|
|
|
# Update manifests
|
|
#
|
|
# USAGE:
|
|
# ./tools/manifest.sh [PACKAGE [VERSION_REQ]]
|
|
|
|
if [[ $# -gt 0 ]]; then
|
|
cargo run --manifest-path tools/codegen/Cargo.toml --release -- "$@"
|
|
exit 0
|
|
fi
|
|
|
|
for manifest in tools/codegen/base/*.json; do
|
|
package=$(basename "${manifest%.*}")
|
|
cargo run --manifest-path tools/codegen/Cargo.toml --release -- "${package}" latest
|
|
done
|