United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7167976 Fix broken get_source.sh script
JDK-7167976 : Fix broken get_source.sh script

Details
Type:
Bug
Submit Date:
2012-05-10
Status:
Resolved
Updated Date:
2014-03-03
Project Name:
JDK
Resolved Date:
2012-06-08
Component:
infrastructure
OS:
generic
Sub-Component:
build
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:

Sub Tasks

Description
7167593 doesn't work right on Solaris....  minor change

Changed to sed out the tail of the pull path, then glue that to the supplied extra path

                                    

Comments
EVALUATION

see suggested fix
                                     
2012-05-10
SUGGESTED FIX

diff --git a/make/scripts/hgforest.sh b/make/scripts/hgforest.sh
--- a/make/scripts/hgforest.sh
+++ b/make/scripts/hgforest.sh
@@ -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}"
                                     
2012-05-10
EVALUATION

http://hg.openjdk.java.net/jdk8/build/rev/8a4e92c10a9a
                                     
2012-05-12



Hardware and Software, Engineered to Work Together