домой
This commit is contained in:
parent
1098d710ee
commit
f70f8bff88
|
@ -1,14 +1,35 @@
|
|||
#!/bin/bash
|
||||
|
||||
ninstalled=0
|
||||
installed=
|
||||
for p in `qlist -IC | sort -d`; do
|
||||
installed[ninstalled]=$p
|
||||
let ninstalled++
|
||||
done
|
||||
|
||||
idx=0
|
||||
cd /usr/portage/ || exit -1
|
||||
for d in *-* virtual; do
|
||||
if [[ `qlist -IC $d/ | wc -l` == 0 ]]; then
|
||||
echo $d/
|
||||
dir_list=`ls -1 --color=never -d */ | sort -d`
|
||||
for d in $dir_list ; do
|
||||
if [[ `qlist -IC $d | wc -l` == 0 ]]; then
|
||||
echo $d
|
||||
else
|
||||
pn_list=`ls -1 --color=never -d ${d}*/ | sort -d`
|
||||
for pn in $pn_list; do
|
||||
pn=${pn%/}
|
||||
#echo PN=$pn
|
||||
#echo INSTALLED[$idx]=${installed[$idx]}
|
||||
|
||||
while [[ "`echo ${installed[$idx]} | sed 's~\-~\~~g'`" < "`echo $pn | sed 's~\-~\~~g'`" && $idx -lt $ninstalled ]]; do
|
||||
let idx++
|
||||
done
|
||||
|
||||
if [[ "$pn" == "${installed[$idx]}" ]]; then
|
||||
let idx++
|
||||
else
|
||||
for pn in $d/*; do
|
||||
if [[ `qlist -IC $pn | wc -l` == 0 ]]; then
|
||||
echo $pn/
|
||||
fi
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
|
@ -203,7 +203,6 @@ void tex_parse(const char *source, size_t len, struct tex_struct_s **tex_struct,
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
#ifdef __TEX_PARSER_DEBUG
|
||||
puts("<-OBJ_UNDEF");
|
||||
puts("<-OBJ_UNDEF");
|
||||
|
|
Loading…
Reference in New Issue