AppleCommander/tools/check-java-versions.sh

22 lines
410 B
Bash
Raw Normal View History

#!/bin/bash
2020-01-31 00:16:16 +00:00
TMP=$(mktemp -d)
if [ -z ${TMP} ]
then
echo "Problem creating TEMP directory; aborting!"
exit 1
fi
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}