summaryrefslogtreecommitdiff
path: root/.scripts/remove_preserved_libs.sh
blob: 2a92a60ec621258530feeae0a813144b5901e425 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

sed -n "s/^ *# revdep-rebuild --library '\([^']*\)'.*$/\1/p" /var/log/portage/elog/*.log  | \
	sort | uniq  | \
	while read lib
	do
		cmd="test -e '${lib}' && revdep-rebuild -i --library '${lib}' && rm '${lib}'"
		echo $cmd
		eval $cmd
	done