#!/bin/bash #(C)DatuX 2005 - all rights reserved for PAR in $*; do eval "$PAR=1" &>/dev/null; done rm -r .tmp &>/dev/null mkdir .tmp if ! [ "$1" ]; then echo "Usage: $0 " echo "Rebuildcheck all the packages that depend on ." echo "(that have a #DEP:... in their slackbuild)" echo "Use this if you did a major upgrade and changed the .major file of the package." exit 1 fi echo "Rebuilding checking all packages that depend on $1..." #zoek alle slackbuilds IFS=" " for BUILDFILE in `find $DIR -name '*.SlackBuild'|sort -r`; do if grep "^#DEP:$1$" $BUILDFILE &>/dev/null; then echo "$BUILDFILE depends on $1, checking... "; ./rebuildcheck $BUILDFILE "|-" $* || exit 1 fi done