Changeset 19 for caixamagica


Ignore:
Timestamp:
Jul 27, 2007, 12:06:11 PM (13 years ago)
Author:
sicns
Message:

svn2rpm.sh updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • caixamagica/scripts/cmbuild/svn2rpm.sh

    r18 r19  
    148148       
    149149        # read configuration file to know which repositories to checkout
    150         for ITEM in `grep ^$PACKAGE $SVN_FONT | tail -n 1| awk 'BEGIN {FS="->"}{print $2}'`
     150        while read ITEM
    151151        do
    152                 echo "Downloading the source code of $ITEM to $DIR/SOURCES/$ITEM"
    153                 svn co $SVN_SERV/soft/$ITEM/trunk $ITEM
    154         done
     152                PACKNAME=`echo "$ITEM" | grep ^$PACKAGE | awk 'BEGIN {FS="->"}{print $1}'`
     153                if [ "$PACKNAME" = "$PACKAGE" ]
     154                then
     155                        for PACKREPO in `echo "$ITEM" | awk 'BEGIN {FS="->"}{print $2}'`
     156                        do
     157                                echo "Downloading the source code of $PACKREPO to $DIR/SOURCES/${PACKREPO}"
     158                                svn co $SVN_SERV/soft/$PACKREPO/trunk $PACKREPO
     159                        done
     160                fi
     161        done < $SVN_FONT
    155162
    156163        cd ..
Note: See TracChangeset for help on using the changeset viewer.