cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit ddfe11abd077078426ecfa66b6e2f093b9baccfc
parent 4ced0c5c26e247d6f148021d8fc046b7ecf29dae
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Thu, 12 Mar 2020 16:59:43 +0200

contrib: Added kiss-cargo-urlgen

Diffstat:
Acontrib/kiss-cargo-urlgen | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/contrib/kiss-cargo-urlgen 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