-
Notifications
You must be signed in to change notification settings - Fork 4
/
get-versions.sh
20 lines (20 loc) · 998 Bytes
/
get-versions.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
rustc --version | awk '{print $1, $2}'
clang --version | head -1 | sed 's/ (.*//' | awk '{print $2, $NF}'
gcc --version | head -1 | sed 's/ (.*)//' | awk '{print $1, $2}'
sh java/get-java-versions.sh
go version | sed 's/ go/ /' | awk '{print $1, $3}'
js91 --version | sed 's/.*-C/smjs C/'
d8 </dev/null | head -1 | awk '{print $1, $3}' | sed 's/V8/d8/'
rhino </dev/null | head -1
ghc --version | awk '{print "GHC", $NF}'
php8.1 --version | head -1 | sed -e 's/PHP/PHP8.1/' -e 's/ (.*//'
pypy --version 2>&1 | tail -1 | sed 's/^\[//' | awk '{print $1, $2}'
nuitka3 --version | head -1 | awk '{print "nuitka3", $1}'
python3 --version
erl \
-eval '{ok, Version} = file:read_file(filename:join([code:root_dir(), "releases", erlang:system_info(otp_release), "OTP_VERSION"])), io:fwrite(Version), halt().' \
-noshell |
awk '{print "erlang", $1}'
nickle -e "version" | tr -d '"' | awk '{print "nickle", $1}'
cobc --version | egrep '^cobc' | sed 's/.* //' | awk '{print "COBOL", $1}'