mps.talimat-olustur.eklendi

This commit is contained in:
milisman 2016-06-21 21:42:06 +03:00
parent d8600e5b92
commit 847dc2d556
1 changed files with 37 additions and 0 deletions

37
bin/mps
View File

@ -606,6 +606,37 @@ loglama(){
echo "$(date +'%F %T') $1" >> "$kokdizin/$LOGDIZIN/mps.log"
}
talimat_olustur(){
if [ "$1" = '?' ];then
ryaz 34 "kullanım : mps -to paket_ismi"
else
local name
name=$1
mkdir -p $name
tee "$name/talimat" > /dev/null <<EOF
# description:x
# url:x
# packager:milisarge
# Depends on:
name=$name
version=1
release=1
source=()
build () {
cd name-version
./autogen.sh
./configure --prefix=/usr
make
make DESTDIR=$PKG install
}
EOF
ryaz 34 $name "talimatı oluşturuldu."
fi
}
git_guncelle() {
kaynakdizin_kontrol
gitayar_kontrol
@ -826,6 +857,12 @@ ayarlar() {
ters_bagimli_kontrol "$2" ;;
-talb|--talb)
talimat_bilgi "$2" | column -t;;
-to)
if [ ! "$2" ]; then
ryaz 31 "talimat ismi eksik"
exit 1
fi
talimat_olustur "$2" ;;
-Ggit|-GG)
git_guncelle ;;
-G|--pvtg)