NSIS-ka
A free C++ implementation of NSIS protocols

Changeset 4434


Ignore:
Timestamp:
Sep 21, 2009, 6:21:31 PM (8 years ago)
Author:
bless
Message:
  • extended script to detect different URLs in working copy and svn:externals, should fix ticket #127
File:
1 edited

Legend:

Unmodified
Added
Removed
  • dist/qos-nslp-ka/trunk/tools/mkbranch

    r3277 r4434  
    2424distbranch=$SVNDIR/dist/$DISTSUBDIR/$branchdir/$branchname
    2525disttrunk=$SVNDIR/dist/$DISTSUBDIR/trunk
     26disthost=`echo $SVNDIR | sed -n -e '/[^:]\+:\/\/[^\/]\+\/.*/ { s/[^:]\+:\/\/\([^\/]\+\)\/\(.*\)/\1/; p }'`
     27
    2628
    2729if [ -f $TMPEXTFILE ]; then
     
    3941else \
    4042        src="$ext"
     43        hostext=`echo $src | sed -n -e '/[^:]\+:\/\/[^\/]\+\/.*/ { s/[^:]\+:\/\/\([^\/]\+\)\/\(.*\)/\1/; p }'`
     44        if [ "$hostext" != "$disthost" ]; then
     45            #echo "host names of repository and externals are different"
     46            src=`echo $ext | sed -e 's/'$hostext'/'$disthost'/'`
     47            #echo "new source" $src
     48        fi
    4149        branchdest=$SVNDIR/$localextname/$branchdir/$branchname
    4250        echo >>$TMPEXTFILE $localextname $branchdest
     
    4856done
    4957echo "setting new svn:externals for $distbranch"
    50 svn checkout --quiet --ignore-externals $distbranch $TMPSVNWORKDIR
     58svn checkout --quiet --depth=immediates --ignore-externals $distbranch $TMPSVNWORKDIR
    5159svn propset svn:externals --quiet -F $TMPEXTFILE $TMPSVNWORKDIR
    5260svn commit -m "- set externals for the auto-generated branch $branchname" $TMPSVNWORKDIR
     
    5462rm $TMPEXTFILE
    5563rm -rf $TMPSVNWORKDIR
     64# end of script
Note: See TracChangeset for help on using the changeset viewer.