1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00
ripgrep/ci/sha256-releases

26 lines
596 B
Plaintext
Raw Normal View History

2016-09-21 23:36:46 +02:00
#!/bin/sh
2016-09-22 02:19:29 +02:00
set -e
2016-09-21 23:36:46 +02:00
if [ $# != 1 ]; then
echo "Usage: $(basename $0) version" >&2
exit 1
fi
version="$1"
2016-09-22 02:19:29 +02:00
# Linux and Darwin builds.
2016-09-21 23:36:46 +02:00
for arch in i686 x86_64; do
for target in apple-darwin unknown-linux-musl; do
url="https://github.com/BurntSushi/ripgrep/releases/download/$version/ripgrep-$version-$arch-$target.tar.gz"
2016-09-22 02:19:29 +02:00
sha=$(curl -sfSL "$url" | sha256sum)
echo "$version-$arch-$target $sha"
2016-09-21 23:36:46 +02:00
done
done
2016-09-22 02:19:29 +02:00
# Source.
for ext in zip tar.gz; do
url="https://github.com/BurntSushi/ripgrep/archive/$version.$ext"
sha=$(curl -sfSL "$url" | sha256sum)
echo "source.$ext $sha"
done