mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-24 16:10:05 -07:00
fdf2775640
kiss' help output will now include all executables found in $PATH which begin with kiss-*. A comment string is optionally usable via setting the second line of the script to a string. Example: ... This also means that 'kiss <script name>' is also possible now. If I have a script in my $PATH called kiss-depends, I can now use it via kiss with 'kiss depends'.
13 lines
267 B
Bash
Executable File
13 lines
267 B
Bash
Executable File
#!/bin/sh
|
|
# Generate sources for rust packages.
|
|
|
|
[ "$1" ] || {
|
|
printf 'usage: kiss-cargo-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
|