feat: nested package groups

This commit is contained in:
xeruf 2022-07-04 23:09:58 +02:00
parent 24ddc01d95
commit b8bf73c17e
8 changed files with 37 additions and 7 deletions

9
groups/arch-tools Normal file
View file

@ -0,0 +1,9 @@
shell-tools
fd
ripgrep
zsh-completions
python-pynvim
unrar
man-pages
base-devel
topgrade

6
groups/shell-basics Normal file
View file

@ -0,0 +1,6 @@
curl
git
zsh
bat
neovim
man-db

9
groups/shell-tools Normal file
View file

@ -0,0 +1,9 @@
shell-basics
tree
wget
texinfo
fzf
expect
zoxide
locate
diffr

View file

@ -1,5 +1,5 @@
arch
aur
arch
script
zsh
linux

View file

@ -80,17 +80,21 @@ case "$1" in
;;
esac
exitcode=0
while test $# -gt 0; do
runinstalee() {
groupfile="$home/groups/$1"
if test -f "$groupfile"
then for pkg in $(getcontent "$groupfile")
do installpkg "$pkg" ||
"$home/handlers/$(head -1 handlers.available)/install" "$pkg"
done
do runinstalee "$pkg" ||
"$home/handlers/$(head -1 handlers.available)/install" "$pkg"
done
else installpkg "$1"
exitcode=$(expr $exitcode \| $?)
fi
}
exitcode=0
while test $# -gt 0; do
runinstalee "$1"
exitcode=$(expr $exitcode \| $?)
shift
done
exit $exitcode

1
packages/locate/arch Normal file
View file

@ -0,0 +1 @@
plocate

1
packages/locate/deb Normal file
View file

@ -0,0 +1 @@
mlocate