diff options
author | Sven Gothel <[email protected]> | 2013-09-19 08:37:20 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-09-19 08:37:20 +0200 |
commit | 79d9dae462c6d8227807e753bf487fd87d446df7 (patch) | |
tree | b865348b2ba2c4d5ccd863954e989c7aa9db015e /make/scripts/check-java-major-version.sh | |
parent | 9f60c92019a300a5b519aba7c579651799d36f80 (diff) |
Fix Bug 835: Add validation script .. however, classes were java6 clean.
Diffstat (limited to 'make/scripts/check-java-major-version.sh')
-rwxr-xr-x | make/scripts/check-java-major-version.sh | 29 |
1 files changed, 29 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..6b1711c --- /dev/null +++ b/make/scripts/check-java-major-version.sh @@ -0,0 +1,29 @@ +#! /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 +echo +echo VERSIONS found: +echo +grep 'major version' check-java-major-version.log | sort -u + |