3 .
/etc
/init.d
/functions.sh
6 OVERLAY
=/var
/lib
/layman
/gentoo-zh
8 einfo
"clean thin Manifest"
12 if [[ ! -e ${M} ]]; then
13 # ewarn "$(basename $1) not exist"
16 einfo
"$2: clean up: $(basename $1)"
17 sed -i -e '/ebuild/d' $M
18 sed -i -e '/metadata/d' $M
19 sed -i -e '/ChangeLog/d' $M
21 if [[ -d $1/files
]]; then
22 for i
in $
(find $1/files
-type f
); do
24 sed -i -e "/${V}/d" $M
29 if [[ ! -s ${M} ]]; then
30 # einfo "remove empty: $M"
36 for i
in $
(find ${OVERLAY} -maxdepth 2 -and -type d
) ; do