Debian Codegraph @

misc/vm

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`. -e
2 #
3 # Invokes provided arguments in a prebuilt docker image that contains
4 # the Inter toolchain.
5 #
6 cd "$(dirnamescip-shell system . . dirname. "$0")/.."
7
8 RUN_ARGS=-it
9 if [[ "$1" == "--no-tty" ]]; then
10 RUN_ARGS=-i
11 shift
12 elif [[ "$1" == "-h" ]] || [[ "$1" == "--help" ]]; then
13 echoscip-shell system . . echo. "Run Inter build environment virtual machine using docker." >&2
14 echoscip-shell system . . echo. "usage: $0 [--no-tty] [<arg> ...]" >&2
15 echoscip-shell system . . echo. "--no-tty Do not run with TTY input device emulation (useful for scripting)" >&2
16 exit 1
17 fi
18
19 docker run --rm $RUN_ARGS -v "$PWD:/host" rsms/inter-build:latest "$@"