archlinux-s390x/scripts/use-s390x-toolchain.sh
2025-06-01 11:53:38 +02:00

18 lines
427 B
Bash
Executable file

#!/bin/bash
# Wrapper to use s390x toolchain from Podman
# If no arguments, run interactive shell
if [ $# -eq 0 ]; then
sudo podman run --rm -it \
-v "$PWD:/workspace" \
-v "$HOME/.cache:/root/.cache" \
s390x-toolchain \
bash
else
# Run command
sudo podman run --rm \
-v "$PWD:/workspace" \
-v "$HOME/.cache:/root/.cache" \
s390x-toolchain \
"$@"
fi