mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 04:56:30 +02:00
pkg(vlang-0.1.13): Add vlang 0.1.13 (#177)
* pkg(vlang-0.1.13): Add vlang 0.1.13 * Export environment variables: VMODULES and TMPDIR environment vars to the current working dir in the run script. Co-authored-by: Shivansh-007 <Shivansh-007@users.noreply.github.com>
This commit is contained in:
parent
d85f1d2c5b
commit
332a077f46
5 changed files with 29 additions and 0 deletions
8
packages/vlang/0.1.13/build.sh
vendored
Executable file
8
packages/vlang/0.1.13/build.sh
vendored
Executable 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.1.13/environment
vendored
Normal file
4
packages/vlang/0.1.13/environment
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH="$PWD/v:$PATH"
|
6
packages/vlang/0.1.13/metadata.json
vendored
Normal file
6
packages/vlang/0.1.13/metadata.json
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"language": "vlang",
|
||||
"version": "0.1.13",
|
||||
"author": "Shivansh-007 <shivansh-007@outlook.com>",
|
||||
"aliases": ["v"]
|
||||
}
|
8
packages/vlang/0.1.13/run
vendored
Normal file
8
packages/vlang/0.1.13/run
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Export environment variables
|
||||
export VMODULES="$PWD"
|
||||
export TMPDIR="$PWD"
|
||||
|
||||
# Put instructions to run the runtime
|
||||
v run "$@"
|
3
packages/vlang/0.1.13/test.v
vendored
Normal file
3
packages/vlang/0.1.13/test.v
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println('OK')
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue