From 59c078baf969a976ff1311cbc96faac5f22c849e Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Thu, 12 Mar 2020 14:59:43 +0000 Subject: contrib: Added kiss-cargo-urlgen FossilOrigin-Name: 34c9cd0250a03223ce37d036a92f03c76fe5ccd568147920182b0e92c3ca224d --- contrib/kiss-cargo-urlgen | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 contrib/kiss-cargo-urlgen (limited to 'contrib') 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 -- cgit v1.2.3