Compare commits
2 Commits
6e748c614c
...
f2973f0536
Author | SHA1 | Date |
---|---|---|
Dan Vargas | f2973f0536 | |
vcokltfre | 37946d8542 |
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
PREFIX=$(realpath $(dirname $0))
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
# Download and extract ruby
|
||||
curl "https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.1.tar.gz" -o ruby.tar.gz
|
||||
tar xzf ruby.tar.gz --strip-components=1
|
||||
rm ruby.tar.gz
|
||||
|
||||
# Autoconf based
|
||||
./configure --prefix "$PREFIX"
|
||||
make -j$(nproc)
|
||||
make install -j$(nproc)
|
||||
|
||||
# Cleanup
|
||||
cd ..
|
||||
rm -rf build
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Path to ruby binary
|
||||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "ruby",
|
||||
"version": "3.0.1",
|
||||
"aliases": ["ruby3", "rb"]
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Run ruby script with args
|
||||
ruby "$@"
|
|
@ -0,0 +1 @@
|
|||
puts("OK")
|
Loading…
Reference in New Issue