Update xbps-adjacent utilities.

- fix nomad token export
- add xchangelog and xhomepage
- improve quality of xfindup output and use grep directly
This commit is contained in:
Érico Nogueira 2021-06-05 02:32:11 -03:00
parent eade5be56b
commit 7b598a87c5
4 changed files with 14 additions and 5 deletions

View File

@ -9,6 +9,6 @@ function vault-login
end
function nomad-token
set -x NOMAD_TOKEN (vault read -field secret_id nomad/creds/apps-admin)
set -xg NOMAD_TOKEN (vault read -field secret_id nomad/creds/apps-admin)
#expires in one hour
end

6
xbps/.local/bin/xchangelog Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
pkgname="$1"
source srcpkgs/$pkgname/template 2>/dev/null
if [ -n "$changelog" ]; then
xdg-open "$changelog"
fi

View File

@ -3,10 +3,9 @@ set +x
PKGLIST="$(xbps-query -l | awk '{print $2}' | xargs -l1 xbps-uhelper getpkgname)"
curl -LO https://a-hel-fi.m.voidlinux.org/void-updates/void-updates.txt
curl -Lo void-updates.txt.mine https://a-hel-fi.m.voidlinux.org/void-updates/void-updates/updates_ericonr@disroot.org.txt
for pkg in $PKGLIST
do
rg "^$pkg " void-updates.txt
done
rg -C 10 ericonr void-updates.txt
grep "^$pkg " void-updates.txt
done > void-updates.txt.sel

4
xbps/.local/bin/xhomepage Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
pkgname="$1"
source srcpkgs/$pkgname/template 2>/dev/null
xdg-open "$homepage"