From ef5c9a3ceb17f49e390c83edb9ad93df9395e649 Mon Sep 17 00:00:00 2001 From: milisbir Date: Mon, 4 Sep 2017 08:07:10 +0300 Subject: [PATCH] mps.tb2 --- bin/mps | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bin/mps b/bin/mps index 9ebd431e3..4ed9a4df0 100755 --- a/bin/mps +++ b/bin/mps @@ -815,6 +815,18 @@ ters_bagimli_bilgi(){ done } +ters_bagimli_bilgi_yeni(){ + gtbpaket=$1 + tbgdosya=$(mktemp) + grep -rli "\s${gtbpaket}\s.*Depends\|Depends.*\s${gtbpaket}\s" $talimatname_dizin > $tbgdosya ; + #grep -rli "\s${gtbpaket}\s.*Depends\|Depends.*\s${gtbpaket}\s" $ektalimatname >> $tbgdosya ; + #grep -rli "\s${gtbpaket}\s.*Depends\|Depends.*\s${gtbpaket}$" $ektalimatname >> $tbgdosya ; + grep -rli "\s${gtbpaket}\s.*Depends\|Depends.*\s${gtbpaket}$" $talimatname_dizin >> $tbgdosya ; + cat $tbgdosya | xargs -I {} dirname {} | xargs -I {} basename {} | sort > /tmp/${gtbpaket}.tb.txt ; + rm -f $tbgdosya + cat /tmp/${gtbpaket}.tb.txt +} + kirik_ters_bagimli_bilgi(){ gentalimatlar=$(ls $talimatname_dizin/genel/) for tal in $gentalimatlar;do @@ -2057,6 +2069,8 @@ ayarlar() { bagimli_bilgi_dosyala "$2" ;; -tb|tersbag) ters_bagimli_bilgi "$2" ;; + -tb2|tersbag2) + ters_bagimli_bilgi_yeni "$2" ;; -tbk|--pktbk) ters_bagimli_kontrol "$2" ;; -talb|bilgi)