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