···11+#!/bin/sh
22+33+#
44+# Add the `-nightly-YYYYMMDD` suffix the version of all Rust crates in the
55+# workspace. Used by the nightly build.
66+#
77+88+set -e
99+1010+find . -name Cargo.toml -exec \
1111+ sed -i "" -e "s/^version = \"\([^\"]*\)\"$/version = \"\1-nightly-$(date +%Y%m%d)\"/" {} \;