Merge pull request #590 from LoryPelli/vlang-0.3.3

Updated to `Vlang 0.3.3`
This commit is contained in:
Thomas Hobson 2023-04-11 01:06:48 +12:00 committed by GitHub
commit acc449326e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 0 deletions

8
packages/vlang/0.3.3/build.sh vendored Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Cloning vlang source
git clone https://github.com/vlang/v
cd v
# Building and installing vlang
make

4
packages/vlang/0.3.3/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH="$PWD/v:$PATH"

5
packages/vlang/0.3.3/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "vlang",
"version": "0.3.3",
"aliases": ["v"]
}

14
packages/vlang/0.3.3/run vendored Normal file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Export environment variables
export VMODULES="$PWD"
export TMPDIR="$PWD"
# Put instructions to run the runtime
filename=$1
rename 's/$/\.v/' $filename # Add .v extension
shift
v run $filename.v "$@"

3
packages/vlang/0.3.3/test.v vendored Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println('OK')
}