DIR="." KDE_DONT_INSTALL="" for dir in `find $DIR -type d -maxdepth 1 -mindepth 1 ! -name doc ! -name \ bsd-port ! -name admin ! -name CVS ! -name debian ! -name "*lib*" -exec basename {} \;` do echo -n ">>> Do you want to disable ${dir}? [y|n] " read input if [ "$input" = "y" -o "$input" = "Y" ]; then KDE_DONT_INSTALL="$KDE_DONT_INSTALL $dir" fi done # reversed sort to place for example kfaxview before kfax: # this don't create an error with to near equal words SORTLIST=`for pkg in $KDE_DONT_INSTALL; do echo $pkg; done | sort -r` # Backup cp subdirs subdirs.orig for pkg in $SORTLIST; do cp subdirs subdirs.old grep "$pkg" subdirs > /dev/null 2>&1 if [ $? == 0 ]; then cat subdirs.old | sed s/"$pkg"/""/g > subdirs && \ echo ">>> Succesfull disabled $pkg" || \ echo ">>> Error while disabling $pkg" else echo ">>> Error while disabling $pkg" fi done #echo ">>> Creating configure.in" #make -f Makefile.am top_srcdir=. configure.in echo ">>> Creating aclocal.m4" aclocal echo ">>> Creating configure" autoconf