mps-renk
This commit is contained in:
parent
aeaf57ca25
commit
3d9dcd9cd5
1 changed files with 24 additions and 12 deletions
36
bin/mps
36
bin/mps
|
@ -351,18 +351,29 @@ kelime_bul(){
|
||||||
grep --color -H -ri "$1" $ektalimatname
|
grep --color -H -ri "$1" $ektalimatname
|
||||||
}
|
}
|
||||||
|
|
||||||
paket_bilgi2(){
|
kurulu_kontrol_test(){
|
||||||
local paket kkont
|
local _paket kkont cikti _yaz _yaz_uyari
|
||||||
kkont=`kurulu_kontrol "$1"`
|
_paket=$1
|
||||||
if [ "$kkont" = "kurulu" ];then
|
cikti="--renkli"
|
||||||
paket="$1"
|
_yaz_son=""
|
||||||
cat "$VT/$paket"/META
|
if [ "$2" ]; then
|
||||||
elif [ "$kkont" = "degil" ];then
|
cikti="$2"
|
||||||
echo "$_paket_kurulu_degil"
|
fi
|
||||||
else
|
if [ $cikti == "--normal" ];then
|
||||||
echo "$_paket_tanimsiz"
|
_yaz="echo"
|
||||||
|
_yaz_uyari="echo"
|
||||||
|
elif [ $cikti == "--renkli" ];then
|
||||||
|
_yaz="ryaz 32"
|
||||||
|
_yaz_uyari="ryaz 31"
|
||||||
|
fi
|
||||||
|
kkont=`kurulu_kontrol "$1"`
|
||||||
|
if [ "$kkont" == "degil" ];then
|
||||||
|
$_yaz_uyari "$_paket $_paket_kurulu_degil"
|
||||||
|
exit 1
|
||||||
|
elif [ "$kkont" == "tanimsiz" ];then
|
||||||
|
$_yaz_uyari "$_paket $_paket_tanimsiz"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
paket_bilgi(){
|
paket_bilgi(){
|
||||||
|
@ -2617,7 +2628,8 @@ ayarlar() {
|
||||||
hataloglama "(-kdl) paket ismi eksik"
|
hataloglama "(-kdl) paket ismi eksik"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
kurulum_dosya_listele "$2"
|
kurulu_kontrol_test "$2" "$3"
|
||||||
|
kurulum_dosya_listele "$2" "$3"
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
### mps -kkp paketismi = ilgili paketin çalışması için eksik olan dosyaları tespit eder.
|
### mps -kkp paketismi = ilgili paketin çalışması için eksik olan dosyaları tespit eder.
|
||||||
-kkp)
|
-kkp)
|
||||||
|
|
Loading…
Add table
Reference in a new issue