aboutsummaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorohair <none@none>2012-05-11 17:52:57 -0700
committerohair <none@none>2012-05-11 17:52:57 -0700
commite8561d187015830dbb1688b25bb2e7aed0f052da (patch)
tree0564c5f7ab104508ab0765efd6359bb099cfd9c3 /make
parent83538bede951b9612b8f52a9621fc043fece79d6 (diff)
7167976: Fix broken get_source.sh script
Reviewed-by: tbell
Diffstat (limited to 'make')
-rw-r--r--make/scripts/hgforest.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/make/scripts/hgforest.sh b/make/scripts/hgforest.sh
index bca070b..515f1b5 100644
--- a/make/scripts/hgforest.sh
+++ b/make/scripts/hgforest.sh
@@ -59,8 +59,8 @@ if [ "${command}" = "clone" -o "${command}" = "fclone" ] ; then
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}"