tools: Tweak manifest.sh

This commit is contained in:
Taiki Endo
2024-04-01 22:41:43 +09:00
parent b43c846230
commit 599507f802
2 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ fn main() -> Result<()> {
let args: Vec<_> = env::args().skip(1).collect();
if args.is_empty() || args.iter().any(|arg| arg.starts_with('-')) {
println!(
"USAGE: cargo run --release -p install-action-internal-codegen -- <PACKAGE> [VERSION_REQ]"
"USAGE: cargo run --manifest-path tools/codegen/Cargo.toml --release -- <PACKAGE> [VERSION_REQ]"
);
std::process::exit(1);
}

View File

@@ -10,11 +10,11 @@ cd "$(dirname "$0")"/..
# ./tools/manifest.sh [PACKAGE [VERSION_REQ]]
if [[ $# -gt 0 ]]; then
cargo run --release -p install-action-internal-codegen -- "$@"
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 --release -p install-action-internal-codegen -- "${package}" latest
cargo run --manifest-path tools/codegen/Cargo.toml --release -- "${package}" latest
done