Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- set -e
- set -u
- usage() {
- cat <<HELP
- Usage:
- ./run_jh.sh [OPTIONS]
- OPTIONS
- -h : show list of command-line options
- -l=COMMAND: run Jupiter Hell with a lanucher script
- --gl: run Jupiter Hell with OpenGL
- --vk: run Jupiter Hell with Vulkan
- EXAMPLE:
- ./run_jh.sh -l=primusrun
- Use primusrun to lanuch Jupiter Hell"
- HELP
- }
- LAUNCHER=""
- ARGS=""
- for val in "$@"; do
- case "$val" in
- -l=*)
- LAUNCHER=${val#*=}
- shift
- ;;
- -h)
- usage
- exit 0
- ;;
- *)
- ARGS+="$val "
- shift
- ;;
- esac
- done
- LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH" $LAUNCHER ./jh $ARGS 2>err.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement