Skip to content
Snippets Groups Projects
Commit 8669533e authored by Simon McVittie's avatar Simon McVittie
Browse files

Merge branch 'wip/smcv/run-in-scout-on-soldier' into 'master'

scout-on-soldier: Add a convenience script for developers

See merge request steamlinuxruntime!73
parents ae4cbede 4649ee7a
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,12 @@ version of Steam Runtime 1 'scout' by unpacking a `steam-runtime.tar.xz`
into the `SteamLinuxRuntime/steam-runtime/` directory, so that you have
files like `SteamLinuxRuntime/steam-runtime/run.sh`.
If you have `SteamLinuxRuntime` and `SteamLinuxRuntime_soldier` installed
in the same Steam library, you can use `run-in-scout-on-soldier` to test
commands in the scout-on-soldier environment, for example:
.../steamapps/common/SteamLinuxRuntime/run-in-scout-on-soldier -- xterm
Licensing and copyright
-----------------------
......
#!/usr/bin/env bash
# Copyright 2022 Collabora Ltd.
# SPDX-License-Identifier: MIT
set -eu
set -o pipefail
me="$(readlink -f "$0")"
here="${me%/*}"
me="${me##*/}"
echo "$me: Developer script, not for production use" >&2
if ! [ -x "${here}/../SteamLinuxRuntime_soldier/run" ]; then
echo "$me: This convenience script assumes SteamLinuxRuntime and" \
"SteamLinuxRuntime_soldier are in the same directory" >&2
exit 127
fi
exec "${here}/../SteamLinuxRuntime_soldier/run" -- \
"${here}/scout-on-soldier-entry-point-v2" "$@"
# vim:set sw=4 sts=4 et:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment