From ddfe11abd077078426ecfa66b6e2f093b9baccfc Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 12 Mar 2020 16:59:43 +0200 Subject: [PATCH] contrib: Added kiss-cargo-urlgen --- contrib/kiss-cargo-urlgen | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 contrib/kiss-cargo-urlgen diff --git a/contrib/kiss-cargo-urlgen b/contrib/kiss-cargo-urlgen new file mode 100755 index 0000000..ba14aa9 --- /dev/null +++ b/contrib/kiss-cargo-urlgen @@ -0,0 +1,11 @@ +#!/bin/sh + +[ "$1" ] || { + printf 'usage: kiss-carg-urlgen [crate-ver] [crate-ver]\n' + exit 1 +} + +for crate in "$@"; do + printf 'https://static.crates.io/crates/%s/%s.crate vendor\n' \ + "${crate%-*}" "$crate" +done