xwords/xwords4/android/scripts/getsigs.sh

54 lines
1.2 KiB
Bash
Raw Normal View History

#!/bin/bash
2012-08-27 05:18:37 +02:00
set -e -u
NODE=xw4
VARIANT=xw4NoSMS
CLASSPATH=${CLASSPATH:-""}
2012-08-27 05:18:37 +02:00
usage() {
[ $# -gt 0 ] && echo "Error: $1"
echo "usage: $0 [--variant xw4|xw4d]"
exit 1
}
while [ $# -gt 0 ]; do
case $1 in
--help)
usage
;;
--variant)
VARIANT=$2
shift
;;
*)
usage "unexpected flag $1"
;;
esac
shift
2012-08-27 05:18:37 +02:00
done
if [ -d $(dirname $0)/../app/build/intermediates/javac/${VARIANT} ]; then
cd $(dirname $0)/../app/build/intermediates/javac/${VARIANT}/classes
else
echo "no such variant $VARIANT; try"
ALL=''
for DIR in $(ls -d $(dirname $0)/../app/build/intermediates/javac/*); do
2020-09-07 00:45:19 +02:00
ALL="$ALL --variant $(basename $DIR)"
done
echo "$ALL"
exit 1
fi
2014-10-17 05:16:35 +02:00
javah -o /tmp/javah$$.txt org.eehouse.android.${NODE}.jni.XwJNI
javap -s org.eehouse.android.${NODE}.jni.XwJNI
javap -s org.eehouse.android.${NODE}.jni.DrawCtx
javap -s org.eehouse.android.${NODE}.jni.UtilCtxt
javap -s org.eehouse.android.${NODE}.jni.DUtilCtxt
2014-10-17 05:16:35 +02:00
javap -s org.eehouse.android.${NODE}.jni.CommsAddrRec
javap -s org.eehouse.android.${NODE}.jni.CommsAddrRec\$CommsConnTypeSet
2014-10-17 05:16:35 +02:00
javap -s org.eehouse.android.${NODE}.jni.TransportProcs
javap -s org.eehouse.android.${NODE}.jni.JNIUtils
javap -s org.eehouse.android.${NODE}.Utils
cat /tmp/javah$$.txt
rm /tmp/javah$$.txt