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