Since then JDK-8073965 has modified compare.sh in somewhat the same way, but not as complete. Inspired by the changes in JDK-8073965, I improved it even further.
Bug: https://bugs.openjdk.java.net/browse/JDK-8074055WebRev: http://cr.openjdk.java.net/~ihse/JDK-8074055-compare-from-build-infra/webrev.01
/Magnus