File: run-ssr.sh

package info (click to toggle)
soundscaperenderer 0.6.0%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,148 kB
  • sloc: cpp: 36,430; sh: 4,522; makefile: 847; ansic: 762; javascript: 593; python: 57
file content (21 lines) | stat: -rwxr-xr-x 527 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

thispath="$(dirname "$0")"

# add all except -psn* to $OPTIONS:
while [[ $1 ]]; do
  case "$1" in
    -psn*)
      shift
      ;;
    *)
      OPTIONS+=("$1")
      shift
      ;;
  esac
done

# Run script with absolute path to SSR binary as parameter.
# Script runs in background process (&), else we would have two SSR icons in the dock.
# For relative paths to work, this script and the SSR binary must be placed in MacOS/ folder of .app bundle.
osascript "$thispath/run-ssr.scpt" "$thispath" "${OPTIONS[@]}" &