Squashed 'external/capstone/' content from commit 5430745e962
git-subtree-dir: external/capstone git-subtree-split: 5430745e9623786f65c0d773a417f389ebb43395
This commit is contained in:
26
bindings/java/run.sh
Executable file
26
bindings/java/run.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
JNA=/usr/share/java/jna.jar
|
||||
|
||||
if [ ! -f ${JNA} ]; then
|
||||
if [ ! -f /usr/share/java/jna/jna.jar ]; then
|
||||
echo "*** Unable to find jna.jar *** ";
|
||||
exit;
|
||||
else
|
||||
JNA=/usr/share/java/jna/jna.jar;
|
||||
fi
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
"") java -classpath ${JNA}:. TestBasic ;;
|
||||
"testbasic") java -classpath ${JNA}:. TestBasic ;;
|
||||
"arm") java -classpath ${JNA}:. TestArm ;;
|
||||
"arm64") java -classpath ${JNA}:. TestArm64 ;;
|
||||
"mips") java -classpath ${JNA}:. TestMips ;;
|
||||
"x86") java -classpath ${JNA}:. TestX86 ;;
|
||||
"xcore") java -classpath ${JNA}:. TestXcore; ;;
|
||||
"ppc") java -classpath ${JNA}:. TestPpc ;;
|
||||
"sparc") java -classpath ${JNA}:. TestSparc ;;
|
||||
"systemz") java -classpath ${JNA}:. TestSystemz ;;
|
||||
"m680x") java -classpath ${JNA}:. TestM680x ;;
|
||||
* ) echo "Usage: ./run.sh [arm|arm64|m680x|mips|ppc|sparc|systemz|x86]"; exit 1;;
|
||||
esac
|
||||
Reference in New Issue
Block a user