File tree Expand file tree Collapse file tree 5 files changed +34
-0
lines changed
Expand file tree Collapse file tree 5 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ PREFIX=$( realpath $( dirname $0 ) )
4+
5+ mkdir -p build
6+ cd build
7+
8+ # Download and extract ruby
9+ curl " https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.8.tar.gz" -o ruby.tar.gz
10+ tar xzf ruby.tar.gz --strip-components=1
11+ rm ruby.tar.gz
12+
13+ # Autoconf based
14+ ./configure --prefix " $PREFIX "
15+ make -j$( nproc)
16+ make install -j$( nproc)
17+
18+ # Cleanup
19+ cd ..
20+ rm -rf build
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Path to ruby binary
4+ export PATH=$PWD /bin:$PATH
Original file line number Diff line number Diff line change 1+ {
2+ "language" : " ruby" ,
3+ "version" : " 3.4.8" ,
4+ "aliases" : [" ruby3" , " rb" ]
5+ }
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Run ruby script with args
4+ ruby " $@ "
Original file line number Diff line number Diff line change 1+ puts ( "OK" )
You can’t perform that action at this time.
0 commit comments