vlang extension

This commit is contained in:
Thomas Hobson 2021-04-24 20:08:48 +12:00
parent 594ee7d436
commit ecfdfa52de
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 6 additions and 1 deletions

View File

@ -5,4 +5,9 @@ export VMODULES="$PWD"
export TMPDIR="$PWD" export TMPDIR="$PWD"
# Put instructions to run the runtime # Put instructions to run the runtime
v run "$@"
rename 's/$/\.v/' "$@" # Add .v extension
filename=$1.v
shift
v run $filename "$@"