This commit is contained in:
milisman 2016-10-08 21:42:19 +03:00
parent cf3f4e7651
commit db524b7060
1 changed files with 8 additions and 14 deletions

22
bin/mps
View File

@ -254,7 +254,7 @@ paket_kur_oto(){
for kpkt in `cat $kliste`;do for kpkt in `cat $kliste`;do
for pkt in `ls $kpkt* | cut -d'#' -f1`;do for pkt in `ls $kpkt* | cut -d'#' -f1`;do
pak=`ls "$pkt#"*` pak=`ls "$pkt#"*`
mps -k "$pak" mps -k "$pak" && mps -kur "$pkt"
done done
done done
rm -rf otokur.list rm -rf otokur.list
@ -272,7 +272,7 @@ paket_kur_oto_zorla(){
for pkt in `ls $kpkt* | cut -d'#' -f1`;do for pkt in `ls $kpkt* | cut -d'#' -f1`;do
pak=`ls "$pkt#"*` pak=`ls "$pkt#"*`
paket_sil "$pkt" "evet" paket_sil "$pkt" "evet"
mps -k "$pak" mps -k "$pak" && mps -kur "$pkt"
done done
done done
rm -rf otokur.list rm -rf otokur.list
@ -288,16 +288,6 @@ paket_kur_liste(){
done done
} }
paket_kur_bagimli(){
local kpkt pkt pak
for kpkt in `cat $1`;do
for pkt in `ls $kpkt* | cut -d'#' -f1`;do
pak=`ls "$pkt#"*`
mps -kur "$pkt" && mps -k "$pak"
done
done
}
paket_kur_liste_zorla(){ paket_kur_liste_zorla(){
local kpkt pkt pak local kpkt pkt pak
for kpkt in `cat $1`;do for kpkt in `cat $1`;do
@ -900,8 +890,11 @@ ayarlar() {
paket_kur_liste "$2" ;; paket_kur_liste "$2" ;;
-oklz) -oklz)
paket_kur_liste_zorla "$2" ;; paket_kur_liste_zorla "$2" ;;
-pyok) -kh)
paket_kur_bagimli "$2" ;; local templist
templist=`mktemp`
ls *.mps.lz > $templist
mps -okz -H $templist ;;
-ko|--pkko) -ko|--pkko)
paket_kur_oto2 "$2" ;; paket_kur_oto2 "$2" ;;
-kuruld) -kuruld)
@ -1137,6 +1130,7 @@ if [ "$ikaynak" = "yerel" ]; then
if [ "$kkont" = "degil" ];then if [ "$kkont" = "degil" ];then
icerik_ekle "$2" icerik_ekle "$2"
else else
echo $tekrarkur
if [ "$tekrarkur" = "hayir" ];then if [ "$tekrarkur" = "hayir" ];then
while true; do while true; do
ryaz 31 "$2 paketi zaten kurulu silinip kurulsun mu?" ryaz 31 "$2 paketi zaten kurulu silinip kurulsun mu?"