summary refs log blame commit diff
path: root/pkgs/development/compilers/rust/print-hashes.sh
blob: 4d1d20066b85aed10b2dbf47df7273cd671593c2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                                                 
#!/bin/sh

PLATFORMS="i686-unknown-linux-gnu x86_64-unknown-linux-gnu i686-apple-darwin x86_64-apple-darwin"
BASEURL="https://static.rust-lang.org/dist"
VERSION=$1

if [[ -z  $VERSION ]]
then
    echo "No version supplied"
    exit -1
fi

for PLATFORM in $PLATFORMS
do
    URL="$BASEURL/rust-$VERSION-$PLATFORM.tar.gz.sha256"
    curl $URL
done