#!/bin/bash if [ "$1" = "--help" ] ; then echo "Usage: $0 $1 " fi commit="$1" key="$2" version=$(wget -q https://raw.githubusercontent.com/hyperledger/indy-sdk/$commit/Cargo.toml -O - | grep -E '^version =' | head -n1 | cut -f2 -d= | tr -d '" ') [ -z $version ] && exit 1 [ -z $commit ] && exit 2 [ -z $key ] && exit 3 dpkg-buildpackage cat <