1 #!/bin/sh 2 JNA=/usr/share/java/jna.jar 3 4 if [ ! -f ${JNA} ]; then 5 if [ ! -f /usr/share/java/jna/jna.jar ]; then 6 echo "*** Unable to find jna.jar *** "; 7 exit; 8 else 9 JNA=/usr/share/java/jna/jna.jar; 10 fi 11 fi 12 13 case "$1" in 14 "") java -classpath ${JNA}:. Test ;; 15 "test") java -classpath ${JNA}:. Test ;; 16 "arm") java -classpath ${JNA}:. TestArm ;; 17 "arm64") java -classpath ${JNA}:. TestArm64 ;; 18 "mips") java -classpath ${JNA}:. TestMips ;; 19 "x86") java -classpath ${JNA}:. TestX86 ;; 20 "xcore") java -classpath ${JNA}:. TestXcore; ;; 21 "ppc") java -classpath ${JNA}:. TestPpc ;; 22 "sparc") java -classpath ${JNA}:. TestSparc ;; 23 "systemz") java -classpath ${JNA}:. TestSystemz ;; 24 * ) echo "Usage: ./run.sh [arm|arm64|mips|ppc|sparc|systemz|x86]"; exit 1;; 25 esac 26