forked from kiss-community/kiss
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'.
15 lines
321 B
Bash
Executable File
15 lines
321 B
Bash
Executable File
#!/bin/sh -e
|
|
# List orphaned packages.
|
|
|
|
cd "$KISS_ROOT/var/db/kiss/installed/"
|
|
|
|
for pkg in *; do
|
|
case $pkg in
|
|
baseinit|baselayout|gcc|pkgconf|e2fsprogs|musl|\
|
|
make|busybox|bzip2|grub|automake|kiss|rsync|git)
|
|
continue
|
|
esac
|
|
|
|
grep -q "^$pkg$" ./*/depends || printf '%s\n' "$pkg"
|
|
done
|