From 042fb9a185ba115413a787e7bbb62e46061fe6a2 Mon Sep 17 00:00:00 2001 From: milisbir Date: Tue, 29 Mar 2016 00:39:30 +0000 Subject: [PATCH] mps.paketvt --- bin/mps | 20 ++++++++++++++++++++ bin/pkvt_olustur | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/bin/mps b/bin/mps index a049d36d6..321fbceed 100755 --- a/bin/mps +++ b/bin/mps @@ -520,6 +520,24 @@ paketvt_kontrol(){ fi } +pvt_olustur(){ + if [ ! -f paket.vt ];then + touch paket.vt + fi + if [ -f "paket.vt" ];then + mv "paket.vt" "paket.vt.eski" + fi + for paket in `ls *.mps.lz` + ryaz 32 "paket.vt olußturuluyor...." + do + paketad="`echo $paket|cut -d "#" -f1`" + shaek=`sha1sum $paket` + + echo $paketad $shaek >> paket.vt + done + ryaz 32 "paket.vt olußturuldu." +} + yardim(){ echo "yardim" } @@ -570,6 +588,8 @@ ayarlar() { exit 1 fi yeniden_paketle "$2" ;; + -po) + pvt_olustur ;; -os|--pkos) if [ ! "$2" ]; then ryaz 31 "silme listesi yok" diff --git a/bin/pkvt_olustur b/bin/pkvt_olustur index 0a10a7598..a3955bae6 100755 --- a/bin/pkvt_olustur +++ b/bin/pkvt_olustur @@ -6,7 +6,7 @@ pvt_olustur(){ if [ -f "paket.vt" ];then mv "paket.vt" "paket.vt.eski" fi - for paket in `ls` + for paket in `ls *.mps.lz` do paketad="`echo $paket|cut -d "#" -f1`" shaek=`sha1sum $paket`