Javicle - a JSON Video Composition Language
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.

27 lines
770 B

  1. #!/bin/bash
  2. #
  3. # Run JVCL on a spec
  4. #
  5. # Usage:
  6. #
  7. # jvcl [-t temp-dir] spec-file
  8. #
  9. # If `spec-file` is omitted, then jvcl will try to read a spec from stdin.
  10. #
  11. # Every run of JVCL will create a temp directory. You can either specify the name of the directory
  12. # with `-t` (it will be created if it does not exist), or let jvcl create a temp directory for you.
  13. #
  14. # Note: this command will build the jvcl jar file if needed. The first time you run it, it might
  15. # take a long time to start up.
  16. #
  17. SCRIPT="${0}"
  18. SCRIPT_DIR="$(cd "$(dirname "${SCRIPT}")" && pwd)"
  19. . "${SCRIPT_DIR}"/jvcl_common
  20. DEBUG=""
  21. if [[ -n "${JVCL_DEBUG}" ]] ; then
  22. DEBUG="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005"
  23. fi
  24. java -cp "${JVCL_JAR}" ${DEBUG} jvcl.main.Jvcl "${@}"