aboutsummaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorohair <none@none>2012-07-16 11:43:23 -0700
committerohair <none@none>2012-07-16 11:43:23 -0700
commitc02f07299d931ea90bf429fd750f3c8f1fb749ec (patch)
tree15d73c5d3ade1ff3a452a2decb7494e362e94917 /make
parentf7be6677dd9d0c431c7741a2eda15e7ea37fa220 (diff)
7184406: Adjust get_source/hgforest script to allow for trailing // characters
Reviewed-by: tbell
Diffstat (limited to 'make')
-rw-r--r--make/scripts/hgforest.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/make/scripts/hgforest.sh b/make/scripts/hgforest.sh
index aa67490..5906f72 100644
--- a/make/scripts/hgforest.sh
+++ b/make/scripts/hgforest.sh
@@ -98,7 +98,8 @@ for i in ${repos} ; do
(
(
if [ "${command}" = "clone" -o "${command}" = "fclone" ] ; then
- cline="hg clone ${pull_default}/${i} ${i}"
+ pull_newrepo="`echo ${pull_default}/${i} | sed -e 's@\([^:]/\)//*@\1@g'`"
+ cline="hg clone ${pull_newrepo} ${i}"
echo "# ${cline}"
( eval "${cline}" )
else
@@ -121,7 +122,8 @@ if [ "${repos_extra}" != "" ] ; then
n=`expr ${n} '+' 1`
(
(
- cline="hg clone ${pull_extra}/${i} ${i}"
+ pull_newextrarepo="`echo ${pull_extra}/${i} | sed -e 's@\([^:]/\)//*@\1@g'`"
+ cline="hg clone ${pull_newextrarepo} ${i}"
echo "# ${cline}"
( eval "${cline}" )
echo "# exit code $?"