local/bin/pkglister: Remove FreeBSD, Gentoo, Void, skip TeXlive on Guix

master
Pierre Neidhardt 2018-06-18 22:14:47 +02:00
parent 3066594eb8
commit 0e177d6c23
1 changed files with 4 additions and 22 deletions

View File

@ -12,29 +12,11 @@ if command -v pacman >/dev/null 2>&1; then
pacman -Qmeq | LC_ALL=C sort >"$PKG_ROOT/arch-aur"
fi
## FreeBSD
if [ "$(uname)" = "FreeBSD" ]; then
pkg_info | cut -f1 -d' ' >"$PKG_ROOT/freebsd"
fi
## TeXlive
if command -v tlmgr >/dev/null 2>&1; then
tlctl l >"$PKG_ROOT/texlive"
fi
## Gentoo
if command -v emerge >/dev/null 2>&1; then
mkdir -p "$PKG_ROOT/gentoo/package.use"
mkdir -p "$PKG_ROOT/gentoo/package.accept_keywords"
cp /var/lib/portage/world "$PKG_ROOT/gentoo/"
grep '^USE=' /etc/portage/make.conf > "$PKG_ROOT/gentoo/make.conf"
cp /etc/portage/package.use/manual "$PKG_ROOT/gentoo/package.use/manual"
cp /etc/portage/package.accept_keywords/manual "$PKG_ROOT/gentoo/package.accept_keywords/manual"
fi
## Void Linux
if command -v xbps-query >/dev/null 2>&1; then
xbps-query -m | sed 's/-[^-]\+$//' >"$PKG_ROOT/void-official"
if ! command -v guix >/dev/null 2>&1; then
if command -v tlmgr >/dev/null 2>&1; then
tlctl l >"$PKG_ROOT/texlive"
fi
fi
## Guix