mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
18 lines
345 B
Bash
Executable File
18 lines
345 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eo pipefail
|
|
|
|
cd "$(dirname "$0")"
|
|
cd ../..
|
|
|
|
DIR=$(mktemp -d)
|
|
|
|
trap 'cd / && rm -rf "$DIR"' EXIT SIGINT
|
|
|
|
BUILDTIME_RUSTPYTHONPATH=/root/rustpython-lib redoxer build --release
|
|
|
|
cp target/x86_64-unknown-redox/release/rustpython -t "$DIR"
|
|
ln -s "$PWD"/Lib "$DIR"/rustpython-lib
|
|
|
|
redoxer exec -f "$DIR" -- ./rustpython "$@"
|