kiss: Final clean up of contrib

This commit is contained in:
Dylan Araps 2020-04-18 12:36:38 +03:00
parent 10333def43
commit 47de49f92c
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
3 changed files with 7 additions and 10 deletions

View File

@ -34,7 +34,7 @@ while read -r file; do
# Skip listing these packages as dependencies.
case $pkg in
musl|gcc|"$1") ;;
musl|gcc|llvm|"$1") ;;
*) printf '%s\n' "$pkg" ;;
esac
done

View File

@ -6,7 +6,7 @@ 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)
make|busybox|bzip2|grub|kiss|rsync|git|linux-headers)
continue
esac

View File

@ -1,12 +1,11 @@
#!/bin/sh -ef
#!/bin/sh -e
# Remove all packages except for the base.
#
# Disable word-splittng warnings as they're safe here.
# shellcheck disable=SC2046
set --
while read -r pkg _; do
for pkg in "$KISS_ROOT/var/db/kiss/installed/"*; do
pkg=${pkg##*/}
case $pkg in
baselayout|binutils|bison|busybox|bzip2|curl|flex|gcc|git|\
gzip|kiss|libressl|linux-headers|m4|make|musl|pkgconf|rsync|\
@ -14,9 +13,7 @@ while read -r pkg _; do
*) set -- "$@" "$pkg" ;;
esac
done <<EOF
$(kiss l)
EOF
done
[ "$1" ] && {
printf 'WARNING: This will remove \033[1m%s\033[m package(s).\n' "$#"