1#!/bin/bash 2 3# Script which automates publishing a crates.io release of the prost crates. 4 5set -ex 6 7if [ "$#" -ne 0 ] 8then 9 echo "Usage: $0" 10 exit 1 11fi 12 13DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" 14 15CRATES=( \ 16 "tonic" \ 17 "tonic-build" \ 18 "tonic-types" \ 19 "tonic-reflection" \ 20 "tonic-health" \ 21 "tonic-web" \ 22) 23 24for CRATE in "${CRATES[@]}"; do 25 pushd "$DIR/$CRATE" 26 27 echo "Publishing $CRATE" 28 29 cargo publish 30 31 popd 32done 33