comparison bin/venvit.sh @ 105:6463a7e37c45

account for trailing slash
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 26 Nov 2010 11:30:47 -0800
parents ac08d765aa32
children
comparison
equal deleted inserted replaced
104:93cc3245bf2b 105:6463a7e37c45
12 NAME=$1 12 NAME=$1
13 for i in /trunk /branches /tag 13 for i in /trunk /branches /tag
14 do 14 do
15 NAME=${NAME%%$i*} 15 NAME=${NAME%%$i*}
16 done 16 done
17 NAME=${NAME%%/} # remove trailing slash
17 NAME=${NAME##*/} 18 NAME=${NAME##*/}
18 19
19 if svn info $1 2> /dev/null 20 if svn info $1 2> /dev/null
20 then 21 then
21 CHECKOUT="svn co" 22 CHECKOUT="svn co"