Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (16 sloc) 425 Bytes
#!/bin/sh
OTP_VERSION=`erl -noshell -eval 'io:format("~s", [erlang:system_info(otp_release)]), halt().'`
case "$OTP_VERSION" in
R13*)
echo "r13"
;;
R14*)
echo "r14"
;;
R15*)
echo "r15"
;;
*)
echo "error: unknown Erlang/OTP version: $OTP_VERSION" >&2
exit 1
esac