# HG changeset patch # User ohair # Date 1342463833 25200 # Node ID 0a468a4422c72bd3049cd07853a32cb1cc57becd # Parent 3a0e43ffdc49c57e18c5d8ca71770105146167ee 7184406: Adjust get_source/hgforest script to allow for trailing // characters Reviewed-by: tbell diff -r 3a0e43ffdc49 -r 0a468a4422c7 make/scripts/hgforest.sh --- a/make/scripts/hgforest.sh Mon Jul 16 11:36:40 2012 -0700 +++ b/make/scripts/hgforest.sh Mon Jul 16 11:37:13 2012 -0700 @@ -98,7 +98,8 @@ ( ( 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 @@ 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 $?"