diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-03-12 14:59:43 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-03-12 14:59:43 +0000 |
commit | 59c078baf969a976ff1311cbc96faac5f22c849e (patch) | |
tree | e974de7663b30b0c3156bcfa52118df2a37891e4 /contrib | |
parent | 8326a8b148156875d08402f6edf56caad9aedf15 (diff) | |
download | cpt-59c078baf969a976ff1311cbc96faac5f22c849e.tar.gz |
contrib: Added kiss-cargo-urlgen
FossilOrigin-Name: 34c9cd0250a03223ce37d036a92f03c76fe5ccd568147920182b0e92c3ca224d
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/kiss-cargo-urlgen | 11 |
1 files changed, 11 insertions, 0 deletions
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 |