feat: nested package groups
This commit is contained in:
parent
24ddc01d95
commit
b8bf73c17e
8 changed files with 37 additions and 7 deletions
9
groups/arch-tools
Normal file
9
groups/arch-tools
Normal 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
6
groups/shell-basics
Normal file
|
@ -0,0 +1,6 @@
|
|||
curl
|
||||
git
|
||||
zsh
|
||||
bat
|
||||
neovim
|
||||
man-db
|
9
groups/shell-tools
Normal file
9
groups/shell-tools
Normal file
|
@ -0,0 +1,9 @@
|
|||
shell-basics
|
||||
tree
|
||||
wget
|
||||
texinfo
|
||||
fzf
|
||||
expect
|
||||
zoxide
|
||||
locate
|
||||
diffr
|
|
@ -1,5 +1,5 @@
|
|||
arch
|
||||
aur
|
||||
arch
|
||||
script
|
||||
zsh
|
||||
linux
|
||||
|
|
16
instalee
16
instalee
|
@ -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
1
packages/locate/arch
Normal file
|
@ -0,0 +1 @@
|
|||
plocate
|
1
packages/locate/deb
Normal file
1
packages/locate/deb
Normal file
|
@ -0,0 +1 @@
|
|||
mlocate
|
Loading…
Add table
Reference in a new issue