changeset 630:a2d8b628b24b

7167976: Fix broken get_source.sh script Reviewed-by: tbell
author ohair
date Fri, 11 May 2012 17:52:57 -0700
parents ab9dea896baa
children dd037cebb1da
files make/scripts/hgforest.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/make/scripts/hgforest.sh	Thu May 10 08:26:26 2012 -0700
+++ b/make/scripts/hgforest.sh	Fri May 11 17:52:57 2012 -0700
@@ -59,8 +59,8 @@
   done
   if [ "${pull_extra_base}" != "" ] ; then
     subrepos_extra="jdk/src/closed jdk/make/closed jdk/test/closed hotspot/src/closed hotspot/test/closed deploy install sponsors pubs"
-    pull_default_base=`echo ${pull_default} | sed -e 's@\(^.*://[^/]*\)/.*@\1@'`
-    pull_extra=`echo ${pull_default} | sed -e "s@${pull_default_base}@${pull_extra_base}@"`
+    pull_default_tail=`echo ${pull_default} | sed -e 's@^.*://[^/]*/\(.*\)@\1@'`
+    pull_extra="${pull_extra_base}/${pull_default_tail}"
     for i in ${subrepos_extra} ; do
       if [ ! -f ${i}/.hg/hgrc ] ; then
         repos_extra="${repos_extra} ${i}"