File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 3
3
set -e
4
4
set -x
5
5
6
+ VERSION=$( cat .ruby-version)
7
+
6
8
url=" $1 "
7
9
if [ -z " $url " ]; then
8
- url=$( mx urlrewrite https://lafo.ssw.uni-linz.ac.at/pub/graal-external-deps/ruby-3.0.2.tar.gz)
10
+ # The source archive, a copy from https://www.ruby-lang.org/en/downloads/
11
+ url=$( mx urlrewrite " https://lafo.ssw.uni-linz.ac.at/pub/graal-external-deps/ruby-$VERSION .tar.gz" )
9
12
fi
10
13
11
14
os=$( uname -s)
@@ -29,10 +32,10 @@ archive=$(basename "$url")
29
32
30
33
if [ ! -e " $archive " ]; then
31
34
curl -O " $url "
32
- tar xf ruby-3.0.2. tar.gz
35
+ tar xf " ruby-$VERSION . tar.gz"
33
36
fi
34
37
35
- cd ruby-3.0.2 || exit 1
38
+ cd " ruby-$VERSION " || exit 1
36
39
./configure || (cat config.log; exit 1)
37
40
38
41
cp .ext/include/* /ruby/config.h " ../lib/cext/include/truffleruby/config_${mx_platform} .h"
You can’t perform that action at this time.
0 commit comments