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

Changeset 4436


Ignore:
Timestamp:
Sep 21, 2009, 6:37:21 PM (8 years ago)
Author:
bless
Message:
  • applied changes from r4434
File:
1 edited

Legend:

Unmodified
Added
Removed
  • dist/nsis-ka/trunk/tools/mkbranch

    r3778 r4436  
    2828distbranch=$SVNDIR/dist/$DISTSUBDIR/$branchdir/$branchname
    2929distsource=$DISTSOURCE
     30disthost=`echo $SVNDIR | sed -n -e '/[^:]\+:\/\/[^\/]\+\/.*/ { s/[^:]\+:\/\/\([^\/]\+\)\/\(.*\)/\1/; p }'`
    3031
    3132read -p "Do you really want to create $distbranch from $distsource ? (yes/no): " reallydoit
     
    5354else \
    5455        src="$ext"
     56        hostext=`echo $src | sed -n -e '/[^:]\+:\/\/[^\/]\+\/.*/ { s/[^:]\+:\/\/\([^\/]\+\)\/\(.*\)/\1/; p }'`
     57        if [ "$hostext" != "$disthost" ]; then
     58            #echo "host names of repository and externals are different"
     59            src=`echo $ext | sed -e 's/'$hostext'/'$disthost'/'`
     60            #echo "new source" $src
     61        fi
    5562        branchdest=$SVNDIR/$localextname/$branchdir/$branchname
    5663        echo >>$TMPEXTFILE $localextname $branchdest
     
    6471# set the correct externals for the new branch
    6572echo "setting new svn:externals for $distbranch"
    66 svn checkout --quiet --ignore-externals $distbranch $TMPSVNWORKDIR
     73svn checkout --quiet --depth=immediates --ignore-externals $distbranch $TMPSVNWORKDIR
    6774svn propset svn:externals --quiet -F $TMPEXTFILE $TMPSVNWORKDIR
    6875svn commit -m "- set externals for the auto-generated branch $branchname" $TMPSVNWORKDIR
     
    7077rm $TMPEXTFILE
    7178rm -rf $TMPSVNWORKDIR
     79# end of script
Note: See TracChangeset for help on using the changeset viewer.