diff options
author | Sven Gothel <[email protected]> | 2012-01-22 19:51:14 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-01-22 19:51:14 +0100 |
commit | 9df0473afdceca1403751b5f54f53c7ec86b3015 (patch) | |
tree | eb44fb70391123e8d214ddc433bbda283a64eeda /make | |
parent | 64639b805a32338385421f168e12c1ef7f749d00 (diff) |
Add verification script for compiled-in Java version
Diffstat (limited to 'make')
-rwxr-xr-x | make/scripts/check-java-major-version.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/make/scripts/check-java-major-version.sh b/make/scripts/check-java-major-version.sh new file mode 100755 index 0000000..0e4424d --- /dev/null +++ b/make/scripts/check-java-major-version.sh @@ -0,0 +1,25 @@ +#! /bin/bash + +TDIR=`pwd` + +function dump_version() { + echo -n "$1: " + javap -v $1 | grep 'major version' +} + +function dump_versions() { + cd $1 + #dump_version jogamp.common.Debug + for i in `find . -name '*.class'` ; do + dump_version `echo $i | sed -e 's/\//./g' -e 's/\.class//g'` + done + cd $TDIR +} + +function do_it() { + dump_versions $1/classes + dump_versions $1/test/build/classes +} + +do_it $1 2>&1 | tee check-java-major-version.log + |