From b6b128f293a5e8f4c88d32ea37938c4c6c5af13c Mon Sep 17 00:00:00 2001 From: milisbir Date: Thu, 17 Mar 2016 03:08:47 +0000 Subject: [PATCH] malfs mekanizma guncelleme --- bin/mps | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/bin/mps b/bin/mps index abd325691..6a9afa33c 100755 --- a/bin/mps +++ b/bin/mps @@ -4,7 +4,7 @@ versiyon="0.1" iletisim="milisarge@gmail.com" paketdepo="/depo/paketler/" -sunucu="192.168.3.193:8000/MPS/" +sunucu="192.168.3.192:8000/MPS/" git_sunucu="https://github.com/milisarge/malfs-milis" ikaynak="" betikad=${0##*/} @@ -252,11 +252,23 @@ paket_kur_liste(){ done } -#otomatik derle kontrollu kur +#otomatik kontrollu kur paket_kur_oto2(){ mps -dly "$1" > /dev/null && mps -ok genel.derleme.liste } +paket_diskur_oto(){ + local kpkt pkt pak + for kpkt in `cat $1`;do + mps -ik "$kpkt" + done +} + +#otomatik kontrollu kur +paket_diskur_oto2(){ + mps -dly "$1" > /dev/null && mps -oik genel.derleme.liste +} + paket_sil_oto(){ local spkt for spkt in `cat $1`;do @@ -559,7 +571,11 @@ ayarlar() { -okl|--pkokl) paket_kur_liste "$2" ;; -ko|--pkko) - paket_kur_oto2 "$2" ;; + paket_kur_oto2 "$2" ;; + -oik|--pkok2) + paket_diskur_oto "$2" ;; + -iko|--pkko2) + paket_diskur_oto2 "$2" ;; -os|--pkos) if [ ! "$2" ]; then ryaz 31 "silme listesi yok"