2023-01-25 17:35:53 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-10-03 16:23:30 +01:00
|
|
|
#
|
|
|
|
# List the current version of every crate.
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
TOP=$(dirname "$0")/..
|
|
|
|
|
|
|
|
for crate in $("${TOP}/maint/list_crates") ; do
|
|
|
|
printf "%-16s " "$crate:"
|
|
|
|
grep ^version "$TOP/crates/$crate/Cargo.toml" | \
|
|
|
|
head -1 | \
|
|
|
|
sed 's/^version *= *//' |\
|
|
|
|
tr -d '"'
|
|
|
|
done
|