A Java recreation of the classic game Robot Odyssey optimized for linux
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

start.sh 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #/bin/sh
  2. RUNPRG="java"
  3. if ! type -p "${RUNPRG}" > /dev/null;
  4. then
  5. if [ -n "${JAVA_HOME}" ];
  6. then
  7. RUNPRG="${JAVA_HOME}/bin/java"
  8. if [ ! -x "${RUNPRG}" ];
  9. then
  10. echo "JAVA_HOME set, but unable to find java. Please check your java installation."
  11. exit 1
  12. fi
  13. else
  14. echo "Java 1.6 or newer needed for DQ. Must be in PATH or JAVA_HOME set."
  15. exit 1
  16. fi
  17. fi
  18. if [ -f "target/dq-2.8.jar" ];
  19. then
  20. echo "Starting DQ."
  21. ${RUNPRG} -jar "target/dq-2.8.jar"
  22. else
  23. echo "No jar found, building DQ before running."
  24. MVNPRG="mvn"
  25. if ! type -p "${MVNPRG}" > /dev/null;
  26. then
  27. if [ -n "${MAVEN_HOME}" ];
  28. then
  29. MVNPRG="${MAVEN_HOME}/bin/mvn"
  30. if [ ! -x "${MVNPRG}" ];
  31. then
  32. echo "MAVEN_HOME set, but unable to find mvn executable. Please check your maven installation."
  33. exit 1
  34. fi
  35. else
  36. echo "Maven required to build DQ. See maven.apache.org to download."
  37. exit 1
  38. fi
  39. fi
  40. ${MVNPRG} package
  41. ${MVNPRG} exec:java -Dexec.mainClass=com.droidquest.DQ
  42. fi