doc-yerel-silinme
This commit is contained in:
parent
e0d8390f29
commit
209eb10188
8
bin/mps
8
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 &&
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
ln -s /usr/lib64/xfce4/panel-plugins/* /usr/lib/xfce4/panel-plugins/
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue