Created
March 18, 2019 01:52
-
-
Save lattera/7551315f1b127d63c350b33e03922a85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/zsh | |
find /usr/ports -type f -name Makefile -print | \ | |
xargs egrep '^USE_HARDENING' | \ | |
grep safestack 2>&1 | awk -F ':USE' '{print $1;}' | \ | |
while read port; do | |
portdir=$(dirname ${port}) | |
echo "* ${portdir}" >&2 | |
( | |
cd ${portdir} | |
if ! make check-plist clean BATCH=1 2> /dev/null 1>&2; then | |
echo "- ${portdir}" | |
else | |
echo "+ ${portdir}" | |
fi | |
) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment