Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/freebsd-update/freebsd-update.sh
Show First 20 Lines • Show All 2,189 Lines • ▼ Show 20 Lines | if [ "${STRICTCOMPONENTS}" = "no" ]; then | ||||
grep ' = ' compfreq | | grep ' = ' compfreq | | ||||
cut -f 1,3 -d ' ' | | cut -f 1,3 -d ' ' | | ||||
sort -k 2,2 -t ' ' > compfreq.total | sort -k 2,2 -t ' ' > compfreq.total | ||||
grep ' + ' compfreq | | grep ' + ' compfreq | | ||||
cut -f 1,3 -d ' ' | | cut -f 1,3 -d ' ' | | ||||
sort -k 2,2 -t ' ' > compfreq.present | sort -k 2,2 -t ' ' > compfreq.present | ||||
join -t ' ' -1 2 -2 2 compfreq.present compfreq.total | | join -t ' ' -1 2 -2 2 compfreq.present compfreq.total | | ||||
while read S P T; do | while read S P T; do | ||||
if [ ${P} -gt `expr ${T} / 2` ]; then | if [ ${T} -ne 0 -a ${P} -gt `expr ${T} / 2` ]; then | ||||
echo ${S} | echo ${S} | ||||
fi | fi | ||||
done > comp.present | done > comp.present | ||||
cut -f 2 -d ' ' < compfreq.total > comp.total | cut -f 2 -d ' ' < compfreq.total > comp.total | ||||
rm INDEX-ALL compfreq compfreq.total compfreq.present | rm INDEX-ALL compfreq compfreq.total compfreq.present | ||||
# We're done making noise. | # We're done making noise. | ||||
echo "done." | echo "done." | ||||
▲ Show 20 Lines • Show All 1,132 Lines • Show Last 20 Lines |