diff options
author | Stuart Monteith <stuart.monteith@linaro.org> | 2016-12-08 17:35:22 +0000 |
---|---|---|
committer | Stuart Monteith <stuart.monteith@linaro.org> | 2016-12-08 17:45:45 +0000 |
commit | a809f4cbca594dba62c6206257c5558b2998f7a9 (patch) | |
tree | 7f460d318fb2e5948f22be3ce98e0abe10729b51 /jdk8-update-src-tree.yaml | |
parent | e170c7d865e062f1d1ce82137b38310178d6b3b3 (diff) |
jdk: Change format of BOM in source tgz
The BOM only has the hashes of the latest commits. This changes BOM such
that the most recent tag is presented.
Subdir Hash Tag Tag hash
. 34bade2c592a jdk-9+147 5f6920274c48
corba f95cc86b6ac2 jdk-9+147 dc49e0922a8e
jaxp 1ede1ddbd43a jdk-9+147 149559dd882d
jaxws c8c9c334743c jdk-9+147 be37411855de
langtools 586c93260d3b jdk-9+147 76389430a13e
jdk c1b4d9879aea jdk-9+147 c41140100bf1
hotspot bdfe30141ef6 jdk-9+147 132a72c78207
nashorn a42ebb5ed04b jdk-9+147 9e86d6383456
Change-Id: I32e2125b4086c82da6eb449cca7af42a486da3d0
Diffstat (limited to 'jdk8-update-src-tree.yaml')
-rw-r--r-- | jdk8-update-src-tree.yaml | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/jdk8-update-src-tree.yaml b/jdk8-update-src-tree.yaml index 97db7bda42..bf76fc9dd5 100644 --- a/jdk8-update-src-tree.yaml +++ b/jdk8-update-src-tree.yaml @@ -101,17 +101,25 @@ rm -rf out mkdir out - pushd jdk8u - find . -name BOM -exec rm {} \; - commit_id=$(hg identify | awk '{print $1}') - echo "jdk8-${commit_id}" | tee -a BOM + pushd jdk9 + #find . -name BOM -exec rm {} \; + #commit_id=$(hg identify | awk '{print $1}') + #echo "jdk9-${commit_id}" | tee -a BOM - for i in corba jaxp jaxws langtools jdk hotspot nashorn; do - pushd $i - commit_id=$(hg identify | awk '{print $1}') - dir=$(basename $PWD) - echo "${dir}-${commit_id}" | tee -a ../BOM - popd + #for i in corba jaxp jaxws langtools jdk hotspot nashorn; do + # pushd $i + # commit_id=$(hg identify | awk '{print $1}') + # dir=$(basename $PWD) + # echo "${dir}-${commit_id}" | tee -a ../BOM + # popd + #done + + ## Pull out subdirectory HG versions + SUBREPOS=". corba jaxp jaxws langtools jdk hotspot nashorn" + + echo -e Subdir\\tHash\\t\\tTag\\tTag hash > BOM + for x in $SUBREPOS; do + echo -e $x\\t$(cd $x; hg head --template '{node|short}\t' ; hg tags --template="{tag}\t{node|short}\n" | grep -ve '^tip' | head -n1) >>BOM done popd |