aboutsummaryrefslogtreecommitdiff
path: root/jdk9-update-src-tree.yaml
diff options
context:
space:
mode:
authorStuart Monteith <stuart.monteith@linaro.org>2016-12-08 17:35:22 +0000
committerStuart Monteith <stuart.monteith@linaro.org>2016-12-08 17:45:45 +0000
commita809f4cbca594dba62c6206257c5558b2998f7a9 (patch)
tree7f460d318fb2e5948f22be3ce98e0abe10729b51 /jdk9-update-src-tree.yaml
parente170c7d865e062f1d1ce82137b38310178d6b3b3 (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 'jdk9-update-src-tree.yaml')
-rw-r--r--jdk9-update-src-tree.yaml26
1 files changed, 17 insertions, 9 deletions
diff --git a/jdk9-update-src-tree.yaml b/jdk9-update-src-tree.yaml
index 1ae1b271fc..466d66163c 100644
--- a/jdk9-update-src-tree.yaml
+++ b/jdk9-update-src-tree.yaml
@@ -102,16 +102,24 @@
mkdir out
pushd jdk9
- find . -name BOM -exec rm {} \;
- commit_id=$(hg identify | awk '{print $1}')
- echo "jdk9-${commit_id}" | tee -a BOM
+ #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