Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • builder/runrooted

    r0c25615 rd2a077a  
    8383        NEEDS=`../npl/findbuilddeps $PGMPATH` || exit 1
    8484        for NEED in $NEEDS; do
     85
     86                CONFIG=1
     87                echo -n "Finding dependency $NEED: "
     88                TGZ=`../npl/findpkg "$NEED"` || exit 1
     89                echo -n "$TGZ"
     90               
     91                PKGNAME=`basename "$TGZ"|sed 's/.tgz$//'`
     92
    8593                #already installed?
    86                 if grep -x "$NEED" ../npl/buildroot.list >/dev/null; then
     94                if [ -e "$BUILDROOT/var/log/packages/$PKGNAME" ]; then
     95                        echo " (already installed, skipping)"
    8796                        continue
    88                 fi
    89 
    90                 CONFIG=1
    91                 echo -n "Build-dependency $NEED installeren: "
    92                 TGZ=`../npl/findpkg "$NEED"` || exit 1
    93                 echo "$TGZ"
     97                else
     98                        echo " (installing)"
     99                fi
    94100
    95101                #Bepaal waar het pakketje in de buildroot moet terecht komen, ivm crosscompiling.
     
    223229mv $WORKDIR/*.version $DIR || exit 1
    224230
    225 #move packages from buildroot to workdir
     231#copy check if pkg file is different and update build number when needed
    226232for PKG in $WORKDIR/*.pkg; do
    227233        NAME=`basename $PKG|sed 's/.pkg$//g'`
    228234        if ! cmp $PKG $DIR/$NAME.pkg; then
     235                BUILD=`cat $DIR/$NAME.build 2>/dev/null`
     236                if [ "$BUILD" == "" ]; then
     237                        BUILD=1
     238                else
     239                        (( BUILD=BUILD+1 ))
     240                fi
     241                echo "$PKG was rebuilded, build $BUILD"
    229242                mv $PKG $DIR || exit 1
     243                echo $BUILD > $DIR/$NAME.build || exit 1
    230244        fi
    231245done
Note: See TracChangeset for help on using the changeset viewer.