pkgsrc/pkgtools/pkgsurvey/files/pkgsurvey.sh
joerg 019aaa058c pkgsurvey-1.0: Build the package list in a more useful format by
including package name, package location and automatic flag. Send to a
new list to keep the new format separate from the old one.
2015-05-10 19:47:03 +00:00

12 lines
323 B
Bash

#! /bin/sh
${PKG_INFO} -e '*' | while read pkg; do
path=`${PKG_INFO} -Q PKGPATH "$pkg"`
automatic=`${PKG_INFO} -Q automatic "$pkg"`
if [ -z "$automatic" ]; then
automatic=no
fi
echo "$path $pkg $automatic"
done | sort | mail -s "`hostname` `${UNAME} -s`-`${UNAME} -p`-`${UNAME} -r`" pkgsurvey1.0@pkgsrc.org
exit 0