From 209eb10188bd9b56605f590b6484e60bb9db587c Mon Sep 17 00:00:00 2001 From: milisbir Date: Sat, 26 Mar 2016 01:00:34 +0000 Subject: [PATCH] doc-yerel-silinme --- bin/mps | 8 +++++++- bin/tamir_xfce4_plugin | 1 + talimatname/temel/nano/talimat | 1 - 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100755 bin/tamir_xfce4_plugin diff --git a/bin/mps b/bin/mps index c23459913..b30da3a68 100755 --- a/bin/mps +++ b/bin/mps @@ -15,6 +15,8 @@ VT="/var/lib/pkg/DB" TARIHCE_DIZIN="/var/lib/pkg/tarihce" tekrarkur="hayir" lokal="tr" +docsil="evet" +yerelsil="evet" icerik_ekle(){ @@ -30,11 +32,15 @@ icerik_ekle(){ mkdir -p kur.$paketad && tar xf $1 -C kur.$paketad && #istenmeyen yerellerin silinmesi - if [ -d kur.$paketad/usr/share/locale ];then + if [ -d kur.$paketad/usr/share/locale ] && [ "$yerelsil" == "evet" ];then for lkl in `ls kur.$paketad/usr/share/locale/`;do if [ "$lkl" != "$lokal" ];then rm -r kur.$paketad/usr/share/locale/$lkl; fi done fi + #doc dizini silinmesi + if [ -d kur.$paketad/usr/share/doc ] && [ "$docsil" == "evet" ];then + rm -r kur.$paketad/usr/share/doc + fi mkdir -p /var/lib/pkg/DB/"$paketad" && cp -v -afr kur.$paketad/* $kokdizin > kur.$paketad/kurulan && cp kur.$paketad/kurulan /tmp/ &&cat kur.$paketad/kurulan | cut -d '>' -f2 > /var/lib/pkg/DB/"$paketad"/kurulan && diff --git a/bin/tamir_xfce4_plugin b/bin/tamir_xfce4_plugin new file mode 100755 index 000000000..95a919e77 --- /dev/null +++ b/bin/tamir_xfce4_plugin @@ -0,0 +1 @@ +ln -s /usr/lib64/xfce4/panel-plugins/* /usr/lib/xfce4/panel-plugins/ diff --git a/talimatname/temel/nano/talimat b/talimatname/temel/nano/talimat index 396109224..59481454f 100644 --- a/talimatname/temel/nano/talimat +++ b/talimatname/temel/nano/talimat @@ -5,7 +5,6 @@ name=nano version=2.5.2 release=1 -#PAKET_LOKAL="hepsi" source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)