piston/packages/vlang/0.1.13/run

15 lines
226 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env bash
# Export environment variables
export VMODULES="$PWD"
export TMPDIR="$PWD"
# Put instructions to run the runtime
2021-04-24 10:08:48 +02:00
filename=$1
rename 's/$/\.v/' $filename # Add .v extension
2021-04-24 10:08:48 +02:00
shift
v run $filename.v "$@"