forked from kiss-community/kiss
kiss: Final clean up of contrib
This commit is contained in:
parent
10333def43
commit
47de49f92c
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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' "$#"
|
||||
|
Loading…
Reference in New Issue
Block a user