#! /bin/sh CWD=`pwd` for PAK in lxappearance lxde-common lxpanel lxnm lxrandr lxtask lxterminal lxsession; do removepkg $PAK if ["$TMP" = ""]; then TMP=/tmp fi cd $CWD/$PAK sh $PAK.SlackBuild --cleanup cd $TMP if [ ! -f $PAK*.tgz ]; then echo "+---------ERROR---------+" echo "| package $PAK" echo "| does not exist " echo "+-----------------------+" exit fi installpkg $PAK*.tgz mv $PAK*.tgz $CWD/../ done