Files
install-action/tools/manifest.sh

21 lines
493 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2023-06-05 22:58:32 +09:00
# SPDX-License-Identifier: Apache-2.0 OR MIT
2023-09-29 21:03:39 +09:00
set -eEuo pipefail
2022-12-24 21:49:18 +09:00
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 -- "$@"
2022-12-24 21:49:18 +09:00
exit 0
fi
for manifest in tools/codegen/base/*.json; do
2023-08-10 11:49:27 +09:00
package=$(basename "${manifest%.*}")
cargo run --manifest-path tools/codegen/Cargo.toml --release -- "${package}" latest
2022-12-24 21:49:18 +09:00
done