mirror of
https://github.com/emmett1/lfs-scripts.git
synced 2026-01-12 07:57:01 +00:00
18 lines
273 B
Bash
Executable File
18 lines
273 B
Bash
Executable File
#!/bin/sh
|
|
|
|
printpkg() {
|
|
grep -qx $1 $INSTALLED && echo "[i] $1" || echo "[-] $1"
|
|
}
|
|
|
|
[ "$1" ] || exit 1
|
|
|
|
INSTALLED=/tmp/$$-installed
|
|
|
|
pkginfo -i | awk '{print $1}' > $INSTALLED
|
|
|
|
for i in $(grep $1 templates/*/depends | cut -d / -f2); do
|
|
printpkg $i
|
|
done
|
|
|
|
rm -f $INSTALLED
|