mirror of
https://github.com/signalapp/libsignal.git
synced 2024-09-20 03:52:17 +02:00
d952869106
GitHub was restoring the 0.5.7 cache, and then not updating the cache after installing 0.6.0 because it was successfully restored.
27 lines
677 B
Bash
Executable File
27 lines
677 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# Copyright 2023 Signal Messenger, LLC.
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
#
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR=$(dirname "$0")
|
|
cd "${SCRIPT_DIR}"/..
|
|
. bin/build_helpers.sh
|
|
|
|
echo "Checking cargo-about version"
|
|
VERSION=$(cargo about --version)
|
|
echo "Found $VERSION"
|
|
|
|
EXPECTED_VERSION="cargo-about $(cat acknowledgments/cargo-about-version)"
|
|
if [ "$VERSION" != "$EXPECTED_VERSION" ]; then
|
|
echo "This tool works with $EXPECTED_VERSION but $VERSION is installed"
|
|
false
|
|
fi
|
|
|
|
for template in acknowledgments/*.hbs; do
|
|
echo_then_run cargo about generate --config acknowledgments/about.toml --all-features --fail "$template" --output-file "${template%.hbs}"
|
|
done
|