Debian Codegraph @

run

raw symbols SCIP
1 #!/usr/bin/env bash
2 # Run scrcpy generated in the specified BUILDDIR.
3 #
4 # This provides the same feature as "ninja run", except that it is possible to
5 # pass arguments to scrcpy.
6 #
7 # Syntax: ./run BUILDDIR <scrcpy options ...>
8 if [[ $# = 0 ]]
9 then
10 echo "Syntax: $0 BUILDDIR <scrcpy options>" >&2
11 exit 1
12 fi
13
14 BUILDDIR="$1"
15 shift
16
17 if [[ ! -d "$BUILDDIR" ]]
18 then
19 echo "The build dir \"$BUILDDIR\" does not exist." >&2
20 exit 1
21 fi
22
23 SCRCPY_ICON_DIR="app/data" \
24 SCRCPY_SERVER_PATH="$BUILDDIR/server/scrcpy-server" \
25 "$BUILDDIR/app/scrcpy" "$@"