diff options
author | Sven Gothel <[email protected]> | 2014-01-25 15:13:06 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-01-25 15:13:06 +0100 |
commit | 5c5f3b4785835b8abf53474b0c9dc248d1b8dab6 (patch) | |
tree | f608da51d3ea2f0726f6d8475216020351a3b3a5 /make/scripts/check-java-major-version.sh | |
parent | f51d6456ab2196bf8ce7d6b3c7ac6d71e9e0108b (diff) |
Bug 884: Move obsolete NB based build files to 'obsolete.make-nb' ; Fix text file suffix ; Fix Jar Manifest: Move Sealed to bottom.
Diffstat (limited to 'make/scripts/check-java-major-version.sh')
-rwxr-xr-x | make/scripts/check-java-major-version.sh | 30 |
1 files changed, 30 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 00000000..e163281e --- /dev/null +++ b/make/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 + + |