#! /bin/sh CWD=`pwd` PAK1="bluez-libs" PAK2="bluez-utils" PAK3="bluez-firmware" PAK4="bluez-hcidump" removepkg $PAK1 removepkg $PAK2 removepkg $PAK3 removepkg $PAK4 if ["$TMP" = ""]; then TMP=/tmp fi cd $CWD/$PAK1 ./$PAK1.SlackBuild --cleanup cd $TMP if [ ! -f $PAK1*.tgz ]; then echo "+---------ERROR---------+" echo "| package $PAK1" echo "| does not exist " echo "+-----------------------+" exit fi installpkg $PAK1*.tgz cd $CWD/$PAK2 ./$PAK2.SlackBuild --cleanup cd $TMP if [ ! -f $PAK2*.tgz ]; then echo "+---------ERROR---------+" echo "| package $PAK2" echo "| does not exist " echo "+-----------------------+" exit fi installpkg $PAK2*.tgz cd $CWD/$PAK3 ./$PAK3.SlackBuild --cleanup cd $TMP if [ ! -f $PAK3*.tgz ]; then echo "+---------ERROR---------+" echo "| package $PAK3" echo "| does not exist " echo "+-----------------------+" exit fi installpkg $PAK3*.tgz cd $CWD/$PAK4 ./$PAK4.SlackBuild --cleanup cd $TMP if [ ! -f $PAK4*.tgz ]; then echo "+---------ERROR---------+" echo "| package $PAK4" echo "| does not exist " echo "+-----------------------+" exit fi installpkg $PAK4*.tgz