source: npl/rebuildcheckdeps @ 76ea60c

Last change on this file since 76ea60c was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 741 bytes
Line 
1#!/bin/bash
2#(C)DatuX 2005 - all rights reserved
3for PAR in $*; do eval "$PAR=1" &>/dev/null; done
4
5rm -r .tmp &>/dev/null
6mkdir .tmp
7
8if ! [ "$1" ]; then
9    echo "Usage: $0 <packagename>"
10    echo "Rebuildcheck all the packages that depend on <packagename>."
11    echo "(that have a #DEP:... in their slackbuild)"
12    echo "Use this if you did a major upgrade and changed the .major file of the package."
13    exit 1
14fi
15
16echo "Rebuilding checking all packages that depend on $1..."
17
18#zoek alle slackbuilds
19IFS="
20"
21for BUILDFILE in `find $DIR -name '*.SlackBuild'|sort -r`; do
22        if grep "^#DEP:$1$" $BUILDFILE &>/dev/null; then
23            echo "$BUILDFILE depends on $1, checking... ";
24            ./rebuildcheck $BUILDFILE "|-" $*  || exit 1
25        fi
26done
Note: See TracBrowser for help on using the repository browser.