AppleCommander/tools/check-java-versions.sh

17 lines
329 B
Bash
Executable File

#!/bin/bash
TMP=$(mktemp --directory)
pushd build
for JAR in $(find . -name "*.jar" -a -not -name "*-sources.jar" -a -not -name "*-javadoc.jar")
do
echo "Checking ${JAR}..."
unzip -qq -d ${TMP} ${JAR}
find ${TMP} -name "*.class" | xargs file -b | sort -u
rm -rf ${TMP}/*
echo
done
popd
rm -rf ${TMP}