centos 7 编译openjdk 8 运行 get_source.sh 有问题

centos7 compile openjdk8 run get_source.sh something wrong

当我运行get_source.sh出了点问题

./get_source.sh ERROR: Need initial repository to use this script

这是历史:

 1. hg init jdk8
 2. hg -r pull 20 http://hg.openjdk.java.net/jdk8/jdk8
 3. hg pull -r 500 http://hg.openjdk.java.net/jdk8/jdk8
 4. hg pull -r 941 http://hg.openjdk.java.net/jdk8/jdk8
 5. chmod +x get_source.sh
 6. ./get_source.sh
  1. hg 初始化 jdk
  2. cd jdk/.hg
  3. eamcs -nw hgrc

example repository config (see "hg help config" for more info)

[paths] default = http://hg.openjdk.java.net/jdk8u/jdk8u60/

path aliases to other clones of this repo in URLs or filesystem paths

(see "hg help config.paths" for more info)

#

default-push = ssh://jdoe@example.net/hg/jdoes-fork

my-fork = ssh://jdoe@example.net/hg/jdoes-fork

my-clone = /home/jdoe/jdoes-clone

[ui]

name and email (local to this repository, optional), e.g.

username = Jane Doe

结束

您可以按照我从 readme 文件中获取的以下说明下载源代码。他们为我工作。

hg clone http://hg.openjdk.java.net/jdk8/jdk8 YourOpenJDK 
cd YourOpenJDK 
bash ./get_source.sh