diff options
author | Sven Gothel <[email protected]> | 2013-09-19 09:21:08 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-09-19 09:21:08 +0200 |
commit | d7bcbaf47c8b78457811dbdaa1de4f6e3ae6f4cc (patch) | |
tree | e168cbf8ff2ddb560e19682a592b995cc873b815 /scripts | |
parent | 717acaa8dc760ce17908ba3d3f06b4f26c1cac6f (diff) |
Fix Bug 835: Add validation script .. however, classes were java6 clean.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check-java-major-version.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/check-java-major-version.sh b/scripts/check-java-major-version.sh new file mode 100755 index 00000000..e163281e --- /dev/null +++ b/scripts/check-java-major-version.sh @@ -0,0 +1,30 @@ +#! /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/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 + + |