aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-06-28 18:54:56 +0200
committerSven Gothel <[email protected]>2013-06-28 18:54:56 +0200
commit28ed823b1a804145b4dd741807a83570abc139e1 (patch)
tree9c03ad7796a72b8f22d05c279b0f8a51d590699d /scripts
parentc15865e0f62a3af9508245554ed9d4000403e2e0 (diff)
build: Use environment var 'PLUGIN_JAR' and property 'plugin.jar' to define plugin.jar for JavaScript bridge; Use javac debug defaults: source,lines.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-java-major-version.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/check-java-major-version.sh b/scripts/check-java-major-version.sh
new file mode 100755
index 0000000..0e4424d
--- /dev/null
+++ b/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
+