This commit is contained in:
milisbir 2017-08-01 02:06:59 +03:00
parent a183a0b9d7
commit e612177cd4
1 changed files with 11 additions and 9 deletions

20
bin/mps
View File

@ -166,12 +166,13 @@ paket_sil(){
paket_ara(){ paket_ara(){
paket="$1" paket="$1"
for pkt in `cat /depo/paketler/paket.vt | grep $paket | awk '{print $1}'`; do for pkt in `cat /depo/paketler/paket.vt | grep $paket | awk '{print $1}'`; do
pakdesc=$(find /root/talimatname -name "$pkt" | xargs -I % sed -n '1{p;q}' %/talimat | sed s'/# Description: //g'); pakdesc=$(find $talimatname_dizin -name "$pkt" | xargs -I % sed -n '1{p;q}' %/talimat | sed s'/# Description: //g');
ryaz 34 "$pkt - $pakdesc"; ryaz 34 "$pkt - $pakdesc";
done done
} }
kelime_bul(){ kelime_bul(){
grep --color -H -ri "$1" /root/talimatname/ grep --color -H -ri "$1" $talimatname_dizin
grep --color -H -ri "$1" $ektalimatname
} }
paket_bilgi2(){ paket_bilgi2(){
local paket kkont local paket kkont
@ -661,19 +662,20 @@ paket_derle(){
konum="$1" konum="$1"
derpaket=`basename $1` derpaket=`basename $1`
else else
konum="`find "$talimatname_dizin" -name $1`" sonuc="`find "$talimatname_dizin" -name $1`"
#anakonum="`find "$ana_talimatname_dizin" -name $1`" eksonuc="`find "$ektalimatname" -name $1`"
if [ -f "$sonuc/talimat" ];then
konum=$sonuc
elif [ -f "$eksonuc/talimat" ];then
konum=$eksonuc
fi
derpaket="$1" derpaket="$1"
fi fi
if [ -d "$konum" ];then if [ -d "$konum" ];then
mkdir -p tmp."$derpaket" mkdir -p tmp."$derpaket"
cp -a $konum/* tmp."$derpaket"/ cp -a $konum/* tmp."$derpaket"/
cd tmp."$derpaket" cd tmp."$derpaket"
# önce talimat-anatalimat karşılaştırması yapılır.
#if [ "`dosya_karsilastir $konum/talimat $anakonum/talimat`" = "degil" ];then
# zorla_derle="var"
#fi
# kurulu ve değişiklik yoksa derlenmez.
if [ "`kurulu_kontrol "$derpaket"`" = "kurulu" ] && [ "$zorla_derle" = "yok" ];then if [ "`kurulu_kontrol "$derpaket"`" = "kurulu" ] && [ "$zorla_derle" = "yok" ];then
derleme_onay="h" derleme_onay="h"
else else